forked from OSchip/llvm-project
parent
9382fdb163
commit
f351774f7b
|
@ -19,23 +19,23 @@ void test2() {
|
|||
}
|
||||
|
||||
// PR7338
|
||||
// CHECK: @test3
|
||||
void test3(int *vout, int vin)
|
||||
{
|
||||
// CHECK: call void asm "opr $0,$1", "=*r|m|r,r|m|r,~{edi},~{dirflag},~{fpsr},~{flags}"
|
||||
asm(
|
||||
"opr %[vout],%[vin]"
|
||||
asm ("opr %[vout],%[vin]"
|
||||
: [vout] "=r,=m,=r" (*vout)
|
||||
: [vin] "r,m,r" (vin)
|
||||
: "edi"
|
||||
);
|
||||
: "edi");
|
||||
}
|
||||
|
||||
// PR8959 - This should implicitly truncate the immediate to a byte.
|
||||
// CHECK: @test4
|
||||
int test4(volatile int *addr) {
|
||||
unsigned char oldval;
|
||||
// CHECK: call i8 asm "frob $0", "=r,0{{.*}}"(i8 -1)
|
||||
__asm__ ("frob %0" : "=r"(oldval) : "0"(0xff));
|
||||
return (int)oldval;
|
||||
// CHECK: call i8 asm "frob $0", "=r,0{{.*}}"(i8 -1)
|
||||
}
|
||||
|
||||
// <rdar://problem/10919182> - This should have both inputs be of type x86_mmx.
|
||||
|
|
Loading…
Reference in New Issue