[cfe-commits] r110738 - /cfe/trunk/test/CodeGen/asm-inout.c
John Thompson
John.Thompson.JTSoftware at gmail.com
Tue Aug 10 15:04:00 PDT 2010
Author: jtsoftware
Date: Tue Aug 10 17:04:00 2010
New Revision: 110738
URL: http://llvm.org/viewvc/llvm-project?rev=110738&view=rev
Log:
Something's wrong with this test on other platforms. I'll probably need to simplify it later. For now revert.
Modified:
cfe/trunk/test/CodeGen/asm-inout.c
Modified: cfe/trunk/test/CodeGen/asm-inout.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/asm-inout.c?rev=110738&r1=110737&r2=110738&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/asm-inout.c (original)
+++ cfe/trunk/test/CodeGen/asm-inout.c Tue Aug 10 17:04:00 2010
@@ -17,26 +17,3 @@
// CHECK: store i32 {{%[a-zA-Z0-9\.]+}}, i32* [[REGCALLRESULT]]
asm ("foobar" : "+r"(*foo()));
}
-
-// PR7338
-// CHECK: @test3
-void test3(int *vout, int vin)
-{
- // CHECK: entry:
- // CHECK: [[REGCALLRESULT1:%[a-zA-Z0-9\.]+]] = alloca i32*, align 4 ; <i32**> [#uses=2]
- // CHECK: [[REGCALLRESULT2:%[a-zA-Z0-9\.]+]] = alloca i32, align 4 ; <i32*> [#uses=2]
- // CHECK: store i32* [[REGCALLRESULT5:%[a-zA-Z0-9\.]+]], i32** [[REGCALLRESULT1]]
- // CHECK: store i32 [[REGCALLRESULT6:%[a-zA-Z0-9\.]+]], i32* [[REGCALLRESULT2]]
- // CHECK: [[REGCALLRESULT3:%[a-zA-Z0-9\.]+]] = load i32** [[REGCALLRESULT1]] ; <i32*> [#uses=1]
- // CHECK: [[REGCALLRESULT4:%[a-zA-Z0-9\.]+]] = load i32* [[REGCALLRESULT2]] ; <i32> [#uses=1]
- // The following is disabled until mult-alt constraint support is enabled.
- // call void asm "opr $0,$1", "=*rm,rm,~{di},~{dirflag},~{fpsr},~{flags}"(i32* [[REGCALLRESULT3]], i32 [[REGCALLRESULT4]]) nounwind,
- // Delete the following line when mult-alt constraint support is enabled.
- // CHECK: call void asm "opr $0,$1", "=*r,r,~{di},~{dirflag},~{fpsr},~{flags}"(i32* [[REGCALLRESULT3]], i32 [[REGCALLRESULT4]]) nounwind,
-asm(
- "opr %[vout],%[vin]"
- : [vout] "=r,=m,=r" (*vout)
- : [vin] "r,m,r" (vin)
- : "edi"
- );
-}
More information about the cfe-commits
mailing list