From: Petar Jovanovic Date: Mon, 14 Dec 2015 20:30:02 +0000 (+0000) Subject: [PowerPC] Fix test/CodeGen/ppc-sfvarargs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73510e6e20e954b8dae736fdde4f4a692df8b7e3;p=clang [PowerPC] Fix test/CodeGen/ppc-sfvarargs 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 --- diff --git a/test/CodeGen/ppc-sfvarargs.c b/test/CodeGen/ppc-sfvarargs.c index a60dc3c41b..924d9c5fe4 100644 --- a/test/CodeGen/ppc-sfvarargs.c +++ b/test/CodeGen/ppc-sfvarargs.c @@ -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