In dag-optnone.ll, use varargs instead of win64 to fast SDIsel.
authorNico Weber <nicolasweber@gmx.de>
Fri, 15 Jul 2016 15:30:18 +0000 (15:30 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 15 Jul 2016 15:30:18 +0000 (15:30 +0000)
The test used to rely on targeting win64 to disable fast isel,
but I'd like to teach fast isel about win64 rets.  Change the
test to use varargs to disable fast isel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275568 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/dag-optnone.ll

index f7774e6e8c5496218cf3d16ecceb6028e7918302..e0e12553dac6ee63a6a2c26b54ade3051c523a4c 100644 (file)
 
 
 ; The test cases @foo[WithOptnone] prove that the same DAG combine happens
-; with -O0 and with 'optnone' set.  To prove this, we use a Windows triple to
-; cause fast-isel to bail out (because something about the calling convention
-; is not handled in fast-isel).  Then we have a repeated fadd that can be
-; combined into an fmul.  We show that this happens in both the non-optnone
-; function and the optnone function.
+; with -O0 and with 'optnone' set.  To prove this, we use a varags to cause
+; fast-isel to bail out (varags aren't handled in fast isel).  Then we have
+; a repeated fadd that can be combined into an fmul.  We show that this
+; happens in both the non-optnone function and the optnone function.
 
-define float @foo(float %x) #0 {
+define float @foo(float %x, ...) #0 {
 entry:
   %add = fadd fast float %x, %x
   %add1 = fadd fast float %add, %x
@@ -41,7 +40,7 @@ entry:
 ; CHECK:       mul
 ; CHECK-NEXT:  ret
 
-define float @fooWithOptnone(float %x) #1 {
+define float @fooWithOptnone(float %x, ...) #1 {
 entry:
   %add = fadd fast float %x, %x
   %add1 = fadd fast float %add, %x
@@ -60,7 +59,7 @@ entry:
 
 @id84 = common global <16 x i32> zeroinitializer, align 64
 
-define void @bar() #1 {
+define void @bar(...) #1 {
 entry:
   %id83 = alloca <16 x i8>, align 16
   %0 = load <16 x i32>, <16 x i32>* @id84, align 64