search for: asmresult

Displaying 5 results from an estimated 5 matches for "asmresult".

2019 Jun 27
5
[RFC] ASM Goto With Output Constraints
...this: > > define i32 @vogon(i32 %a, i32 %b) { > entry: > %0 = callbr { i32, i32 } asm sideeffect "poetry $0, $1", "=r,=r,X" > (i8* blockaddress(@vogon, %error)) > to label %asm.fallthrough [label %error] > > > asm.fallthrough: > %asmresult.a = extractvalue { i32, i32 } %0, 0 > %asmresult.b = extractvalue { i32, i32 } %0, 1 > %result = add i32 %asmresult.a, %asmresult.b > ret i32 %result > > error: > ret i32 -1 > } > > Note that unlike the invoke instruction, callbr's return values are > assum...
2019 Jun 27
1
[RFC] ASM Goto With Output Constraints
...n(i32 %a, i32 %b) { >> entry: >> %0 = callbr { i32, i32 } asm sideeffect "poetry $0, $1", "=r,=r,X" >> (i8* blockaddress(@vogon, %error)) >> to label %asm.fallthrough [label %error] >> >> >> asm.fallthrough: >> %asmresult.a = extractvalue { i32, i32 } %0, 0 >> %asmresult.b = extractvalue { i32, i32 } %0, 1 >> %result = add i32 %asmresult.a, %asmresult.b >> ret i32 %result >> >> error: >> ret i32 -1 >> } >> >> Note that unlike the invoke instruction, callb...
2019 Jun 27
3
[cfe-dev] [RFC] ASM Goto With Output Constraints
...entry: >>> %0 = callbr { i32, i32 } asm sideeffect "poetry $0, $1", "=r,=r,X" >>> (i8* blockaddress(@vogon, %error)) >>> to label %asm.fallthrough [label %error] >>> >>> >>> asm.fallthrough: >>> %asmresult.a = extractvalue { i32, i32 } %0, 0 >>> %asmresult.b = extractvalue { i32, i32 } %0, 1 >>> %result = add i32 %asmresult.a, %asmresult.b >>> ret i32 %result >>> >>> error: >>> ret i32 -1 >>> } >>> >>> Note that...
2019 Jun 27
2
[cfe-dev] [RFC] ASM Goto With Output Constraints
...entry: >>> %0 = callbr { i32, i32 } asm sideeffect "poetry $0, $1", "=r,=r,X" >>> (i8* blockaddress(@vogon, %error)) >>> to label %asm.fallthrough [label %error] >>> >>> >>> asm.fallthrough: >>> %asmresult.a = extractvalue { i32, i32 } %0, 0 >>> %asmresult.b = extractvalue { i32, i32 } %0, 1 >>> %result = add i32 %asmresult.a, %asmresult.b >>> ret i32 %result >>> >>> error: >>> ret i32 -1 >>> } >>> >>> Note that...
2010 Jul 12
2
[LLVMdev] about llvm2.7's inline assembly
...my llvm byte code: %asmtmp = call %struct.__mbstate_t asm sideeffect "cld; rep; stosl", "={cx},={di},{ax},0,1,~{dirflag},~{fpsr},~{flags},~{memory}"(i32 0, i32 32, i32* getelementptr inbounds (%struct.__sigset_t* @socks, i32 0, i32 0, i32 0)) nounwind ; <%struct.__mbstat %asmresult = extractvalue %struct.__mbstate_t %asmtmp, 0 ; <i32> [#uses=1] store i32 %asmresult, i32* %__d0 %asmresult1 = extractvalue %struct.__mbstate_t %asmtmp, 1 ; <i32> [#uses=1] store i32 %asmresult1, i32* %__d1 %0 = load i32* @sock, align 4 However, if I use llvm-gcc 2.6, this inlin...