diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-27 19:22:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-27 19:22:14 +0000 |
commit | 745bd85c6a62c8292fabeb87eb2c7336e912f21e (patch) | |
tree | 68ada9d95ead8b0e5cf923ca7b6afd207e378624 /llvm | |
parent | 17046b8506e97b88db1d0269ed94715a2508e0cc (diff) | |
download | bcm5719-llvm-745bd85c6a62c8292fabeb87eb2c7336e912f21e.tar.gz bcm5719-llvm-745bd85c6a62c8292fabeb87eb2c7336e912f21e.zip |
Use FileCheck and expand the test a bit.
In particular, check the name of the symbol we are putting in the constant pool.
llvm-svn: 195865
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/CodeGen/Thumb/unord.ll | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/Thumb/unord.ll b/llvm/test/CodeGen/Thumb/unord.ll index 39458ae7b7b..41a002efd65 100644 --- a/llvm/test/CodeGen/Thumb/unord.ll +++ b/llvm/test/CodeGen/Thumb/unord.ll @@ -1,13 +1,20 @@ -; RUN: llc < %s -march=thumb | grep bne | count 1 -; RUN: llc < %s -march=thumb | grep beq | count 1 +; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s define i32 @f1(float %X, float %Y) { +; CHECK-LABEL _f1: +; CHECK: bne +; CHECK: .data_region +; CHECK: .long ___unordsf2 %tmp = fcmp uno float %X, %Y %retval = select i1 %tmp, i32 1, i32 -1 ret i32 %retval } define i32 @f2(float %X, float %Y) { +; CHECK-LABEL _f2: +; CHECK: beq +; CHECK: .data_region +; CHECK: .long ___unordsf2 %tmp = fcmp ord float %X, %Y %retval = select i1 %tmp, i32 1, i32 -1 ret i32 %retval |