forked from OSchip/llvm-project
parent
37e3a13931
commit
f5a8cc7ef8
|
@ -7,7 +7,7 @@ void foo()
|
|||
{
|
||||
// CHECK: %0 = call i32 asm sideeffect "", "={ecx}"() nounwind
|
||||
// CHECK: %1 = call i32 asm sideeffect alignstack "sall $$3, $0", "={ecx},{ecx},~{dirflag},~{fpsr},~{flags},~{memory}"(i32 %0) nounwind
|
||||
// CHECK: store i32 %asmtmp, i32* %"%ecx"
|
||||
// CHECK: store i32 %1, i32* %"%ecx"
|
||||
__asm {
|
||||
sal ecx, 3;
|
||||
add esi, ecx;
|
||||
|
|
|
@ -11,7 +11,7 @@ int foo() {
|
|||
|
||||
asm volatile("; %0 This asm defines rsi" : "=r"(a));
|
||||
// CHECK: %1 = call i32 asm sideeffect "; $0 This asm defines rsi", "={rsi}
|
||||
// CHECK: store i32 %asmtmp, i32* %a
|
||||
// CHECK: store i32 %1, i32* %a
|
||||
|
||||
a = 42;
|
||||
// CHECK: store i32 42, i32* %a, align 4
|
||||
|
|
Loading…
Reference in New Issue