[llvm] r195865 - Use FileCheck and expand the test a bit.

Rafael Espindola rafael.espindola at gmail.com
Wed Nov 27 11:22:14 PST 2013


Author: rafael
Date: Wed Nov 27 13:22:14 2013
New Revision: 195865

URL: http://llvm.org/viewvc/llvm-project?rev=195865&view=rev
Log:
Use FileCheck and expand the test a bit.

In particular, check the name of the symbol we are putting in the constant pool.

Modified:
    llvm/trunk/test/CodeGen/Thumb/unord.ll

Modified: llvm/trunk/test/CodeGen/Thumb/unord.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb/unord.ll?rev=195865&r1=195864&r2=195865&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Thumb/unord.ll (original)
+++ llvm/trunk/test/CodeGen/Thumb/unord.ll Wed Nov 27 13:22:14 2013
@@ -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





More information about the llvm-commits mailing list