aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Stichnoth <stichnot@chromium.org>2013-07-25 09:24:02 -0700
committerJim Stichnoth <stichnot@chromium.org>2013-07-25 09:24:02 -0700
commit6877ef9b4c4cfc6585bf1a77327e5637371c8658 (patch)
tree1d37f2534863940e0ad7f3eaa24bc87a767476d9
parent83e9ba3bd788c7c28f270e2269e593b94ca95b41 (diff)
Clean some PNaCl-specific tests.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3588 R=jvoung@chromium.org Review URL: https://codereview.chromium.org/19606003
-rw-r--r--test/CodeGen/X86/fast-isel-gep.ll12
-rw-r--r--test/NaCl/X86/no-global-in-disp-x86-64.ll (renamed from test/CodeGen/X86/no-global-in-disp-x86-64.ll)0
-rw-r--r--test/Transforms/InstCombine/overflow.ll1
3 files changed, 12 insertions, 1 deletions
diff --git a/test/CodeGen/X86/fast-isel-gep.ll b/test/CodeGen/X86/fast-isel-gep.ll
index 7cc5903202..3f4911a188 100644
--- a/test/CodeGen/X86/fast-isel-gep.ll
+++ b/test/CodeGen/X86/fast-isel-gep.ll
@@ -1,7 +1,9 @@
; RUN: llc < %s -mtriple=x86_64-linux -O0 | FileCheck %s --check-prefix=X64
; RUN: llc < %s -mtriple=x86_64-win32 -O0 | FileCheck %s --check-prefix=X64
; RUN: llc < %s -march=x86 -O0 | FileCheck %s --check-prefix=X32
-; RUN: llc < %s -mtriple=i686-nacl -march=x86 -O0 | FileCheck %s --check-prefix=NACL32
+; @LOCALMOD-BEGIN
+; RUN: pnacl-llc < %s -mtriple=i686-nacl -march=x86 -O0 | FileCheck %s --check-prefix=NACL32
+; @LOCALMOD-END
; GEP indices are interpreted as signed integers, so they
; should be sign-extended to 64 bits on 64-bit targets.
@@ -19,10 +21,12 @@ define i32 @test1(i32 %t3, i32* %t1) nounwind {
; X64: movl (%r[[A1:si|dx]],%rax,4), %eax
; X64: ret
+; @LOCALMOD-BEGIN
; NACL32: test1:
; NACL32: movl (%e{{.*}},%e{{.*}},4), %eax
; NACL32: popl %ecx
; NACL32: nacljmp %ecx
+; @LOCALMOD-END
}
define i32 @test2(i64 %t3, i32* %t1) nounwind {
@@ -37,8 +41,10 @@ define i32 @test2(i64 %t3, i32* %t1) nounwind {
; X64: movl (%r[[A1]],%r[[A0]],4), %eax
; X64: ret
+; @LOCALMOD-BEGIN
; NACL32: test2:
; NACL32: movl (%e{{.*}},%e{{.*}},4), %e
+; @LOCALMOD-END
}
@@ -61,9 +67,11 @@ entry:
; X64: movb -2(%r[[A0]]), %al
; X64: ret
+; @LOCALMOD-BEGIN
; NACL32: test3:
; NACL32: movl 4(%esp), %[[REG:e..]]
; NACL32: movb -2(%{{.*}}[[REG]]), %al
+; @LOCALMOD-END
}
@@ -84,8 +92,10 @@ entry:
; X32: 128(%e{{.*}},%e{{.*}},8)
; X64: test4:
; X64: 128(%r{{.*}},%r{{.*}},8)
+; @LOCALMOD-BEGIN
; NACL32: test4:
; NACL32: 128(%e{{.*}},%e{{.*}},8)
+; @LOCALMOD-END
}
; PR8961 - Make sure the sext for the GEP addressing comes before the load that
diff --git a/test/CodeGen/X86/no-global-in-disp-x86-64.ll b/test/NaCl/X86/no-global-in-disp-x86-64.ll
index db911ccff9..db911ccff9 100644
--- a/test/CodeGen/X86/no-global-in-disp-x86-64.ll
+++ b/test/NaCl/X86/no-global-in-disp-x86-64.ll
diff --git a/test/Transforms/InstCombine/overflow.ll b/test/Transforms/InstCombine/overflow.ll
index d8e3be3c94..55ecb70794 100644
--- a/test/Transforms/InstCombine/overflow.ll
+++ b/test/Transforms/InstCombine/overflow.ll
@@ -7,6 +7,7 @@
; RUN: opt -S -instcombine < %s | FileCheck %s -check-prefix=PNACL
; PNACL-NOT: with.overflow
+; @LOCALMOD-END
declare void @throwAnExceptionOrWhatever()