[llvm-commits] [llvm] r112225 - /llvm/trunk/test/Transforms/InstCombine/bitcast.ll

Chris Lattner sabre at nondot.org
Thu Aug 26 14:51:41 PDT 2010


Author: lattner
Date: Thu Aug 26 16:51:41 2010
New Revision: 112225

URL: http://llvm.org/viewvc/llvm-project?rev=112225&view=rev
Log:
filecheckize

Modified:
    llvm/trunk/test/Transforms/InstCombine/bitcast.ll

Modified: llvm/trunk/test/Transforms/InstCombine/bitcast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/bitcast.ll?rev=112225&r1=112224&r2=112225&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/bitcast.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/bitcast.ll Thu Aug 26 16:51:41 2010
@@ -1,14 +1,15 @@
-; RUN: opt < %s -instcombine -S | grep {ret i32 0}
-; PR4487
-
-; Bitcasts between vectors and scalars are valid, despite being ill-advised.
+; RUN: opt < %s -instcombine -S | FileCheck %s
 
-define i32 @test(i64 %a) {
-bb20:
+; Bitcasts between vectors and scalars are valid.
+; PR4487
+define i32 @test1(i64 %a) {
         %t1 = bitcast i64 %a to <2 x i32>
         %t2 = bitcast i64 %a to <2 x i32>
         %t3 = xor <2 x i32> %t1, %t2
         %t4 = extractelement <2 x i32> %t3, i32 0
         ret i32 %t4
+        
+; CHECK: @test1
+; CHECK: ret i32 0
 }
 





More information about the llvm-commits mailing list