Relax tests expecting to see CPI symbols
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 15 Jul 2014 02:44:49 +0000 (02:44 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 15 Jul 2014 02:44:49 +0000 (02:44 +0000)
WinCOFF doesn't use CPI symbols, it has a different scheme for naming
constant pool entries.  Update tests to handle either appearing.

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

test/CodeGen/X86/2008-02-06-LoadFoldingBug.ll
test/CodeGen/X86/vec_return.ll

index d2d5149de3aaa2ba0479323cd57879bc49e9ae7c..13d0bb61184c7efacffcb6830a699d1679e459c6 100644 (file)
@@ -1,5 +1,6 @@
-; RUN: llc < %s -march=x86 -mattr=+sse2 | grep xor | grep CPI
+; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
 
+; CHECK: xorpd {{.LCPI0_0|__xmm@}}
 define void @casin({ double, double }* sret  %agg.result, double %z.0, double %z.1) nounwind  {
 entry:
        %memtmp = alloca { double, double }, align 8            ; <{ double, double }*> [#uses=3]
index 2cf5dc6caa77b770ecf7edc860429c2d23218715..f7fcd032cab3608725b4bd9f67ebbd65e6e45a64 100644 (file)
@@ -10,7 +10,7 @@ define <2 x double> @test() {
 ; Prefer a constant pool load here.
 ; CHECK: test2
 ; CHECK-NOT: shuf
-; CHECK: movaps {{.*}}CPI
+; CHECK: movaps {{.*}}{{CPI|__xmm@}}
 define <4 x i32> @test2() nounwind  {
        ret <4 x i32> < i32 0, i32 0, i32 1, i32 0 >
 }