Fix a bug in GVN that Duncan noticed, where we potentially need to insert a
[oota-llvm.git] / test / Assembler / 2003-05-15-AssemblerProblem.llx
index c1f90417693486048b516343f81fdb0d7bc20959..10cde2877ce5c8d220f3ab607abc966b283de3ee 100644 (file)
@@ -1,12 +1,14 @@
-; RUN: as < %s -o /dev/null -f
+; This bug was caused by two CPR's existing for the same global variable, 
+; colliding in the Module level CPR map.
+; RUN: llvm-as < %s -o /dev/null -f
 
-void %test() {
-        call void (...)* cast (void (short*, int)* %AddString to void (...)*)(short* null, int 0)
+define void @test() {
+        call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* null, i32 0 )
         ret void
 }
 
-void %AddString(short* %tmp.124, int %tmp.127) {
-       call void (...)* cast (void (short*, int)* %AddString to void (...)*)(short* %tmp.124, int %tmp.127)
-       ret void
+define void @AddString(i16* %tmp.124, i32 %tmp.127) {
+        call void (...)* bitcast (void (i16*, i32)* @AddString to void (...)*)( i16* %tmp.124, i32 %tmp.127 )
+        ret void
 }