]> granicus.if.org Git - clang/commitdiff
[PowerPC] Fix test/CodeGen/ppc-sfvarargs
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Mon, 14 Dec 2015 20:30:02 +0000 (20:30 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Mon, 14 Dec 2015 20:30:02 +0000 (20:30 +0000)
The issue seems to be that .ll file may either use number of register
value or alias %numUsedRegs, so the check needs to cover both cases.

This will hopefully fix the last regression introduced by r255515.

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

test/CodeGen/ppc-sfvarargs.c

index a60dc3c41be8b0d3d12c9fc66d569792fa627097..924d9c5fe4c0e1c196d56ccc2c797cd77039ea83 100644 (file)
@@ -12,6 +12,6 @@ void foo() {
   double a;
   test("test",a);
 }
-// CHECK: %{{[0-9]+}} = add i8 %{{[0-9]+}}, 1
+// CHECK: %{{[0-9]+}} = add i8 %{{[0-9]+|numUsedRegs}}, 1
 // CHECK: %{{[0-9]+}} = and i8 %{{[0-9]+}}, -2
 // CHECK: %{{[0-9]+}} = mul i8 %{{[0-9]+}}, 4