diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-12-27 18:35:19 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-12-27 18:35:19 +0000 |
commit | 0ce0dc250c330bd6b62bfa85fae22c9820e61567 (patch) | |
tree | 9b76f9b9a36eb52f9c2b52c3cb0336996d20cfe6 /llvm/test/CodeGen/ARM/tls3.ll | |
parent | b222549dc551cd3a584a023e9250a3ce0d2b409f (diff) | |
download | bcm5719-llvm-0ce0dc250c330bd6b62bfa85fae22c9820e61567.tar.gz bcm5719-llvm-0ce0dc250c330bd6b62bfa85fae22c9820e61567.zip |
test: modernise ARM CodeGen tests
Replace the use of grep with FileCheck. Tidy up some of the tests. A
few of the tests have been left as weak as previously, though some have
been made more stringent.
llvm-svn: 290616
Diffstat (limited to 'llvm/test/CodeGen/ARM/tls3.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/tls3.ll | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/ARM/tls3.ll b/llvm/test/CodeGen/ARM/tls3.ll index ca3cde264da..40954d3d96a 100644 --- a/llvm/test/CodeGen/ARM/tls3.ll +++ b/llvm/test/CodeGen/ARM/tls3.ll @@ -1,16 +1,12 @@ -; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \ -; RUN: grep "tbss" -; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | \ -; RUN: FileCheck %s -check-prefix=CHECK -check-prefix=NOEMU -; RUN: llc < %s -emulated-tls -march=arm -mtriple=arm-linux-gnueabi | \ -; RUN: FileCheck %s -check-prefix=CHECK -check-prefix=EMU +; RUN: llc -mtriple arm-linux-gnueabi -filetype asm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix NOEMU +; RUN: llc -mtriple arm-linux-gnueabi -emulated-tls -filetype asm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix EMU %struct.anon = type { i32, i32 } -@teste = internal thread_local global %struct.anon zeroinitializer ; <%struct.anon*> [#uses=1] +@teste = internal thread_local global %struct.anon zeroinitializer define i32 @main() { entry: - %tmp2 = load i32, i32* getelementptr (%struct.anon, %struct.anon* @teste, i32 0, i32 0), align 8 ; <i32> [#uses=1] + %tmp2 = load i32, i32* getelementptr (%struct.anon, %struct.anon* @teste, i32 0, i32 0), align 8 ret i32 %tmp2 } @@ -32,3 +28,4 @@ entry: ; CHECK-NOT: teste: ; CHECK-NOT: __emutls_t.teste + |