[llvm-commits] CVS: llvm/test/CodeGen/X86/2006-05-11-InstrSched.ll 2007-01-08-InstrSched.ll 2007-01-13-StackPtrIndex.ll sse-fcopysign.ll test-hidden.ll test-pic-1.ll test-pic-2.ll test-pic-3.ll test-pic-4.ll test-pic-5.ll test-pic-6.ll test-pic-cpool.ll test-pic-jtbl.ll trunc-to-bool.ll

Reid Spencer reid at x10sys.com
Fri Jan 26 00:26:06 PST 2007



Changes in directory llvm/test/CodeGen/X86:

2006-05-11-InstrSched.ll updated: 1.5 -> 1.6
2007-01-08-InstrSched.ll updated: 1.3 -> 1.4
2007-01-13-StackPtrIndex.ll updated: 1.1 -> 1.2
sse-fcopysign.ll updated: 1.3 -> 1.4
test-hidden.ll updated: 1.2 -> 1.3
test-pic-1.ll updated: 1.1 -> 1.2
test-pic-2.ll updated: 1.1 -> 1.2
test-pic-3.ll updated: 1.1 -> 1.2
test-pic-4.ll updated: 1.1 -> 1.2
test-pic-5.ll updated: 1.1 -> 1.2
test-pic-6.ll updated: 1.1 -> 1.2
test-pic-cpool.ll updated: 1.2 -> 1.3
test-pic-jtbl.ll updated: 1.1 -> 1.2
trunc-to-bool.ll updated: 1.7 -> 1.8
---
Log message:

For PR761: http://llvm.org/PR761 :
Remove "target endian/pointersize" or add "target datalayout" to make
the test parse properly or set the datalayout because defaults changes.

For PR645: http://llvm.org/PR645 :
Make global names use the @ prefix.

For llvm-upgrade changes:
Fix test cases or completely remove use of llvm-upgrade for test cases 
that cannot survive the new renaming or upgrade capabilities. 



---
Diffs of the changes:  (+97 -97)

 2006-05-11-InstrSched.ll    |    4 ++-
 2007-01-08-InstrSched.ll    |    2 -
 2007-01-13-StackPtrIndex.ll |   48 +++++++++++++++++++++-----------------------
 sse-fcopysign.ll            |   12 +++++------
 test-hidden.ll              |   10 ++++-----
 test-pic-1.ll               |   14 ++++++------
 test-pic-2.ll               |   14 ++++++------
 test-pic-3.ll               |    6 ++---
 test-pic-4.ll               |   12 +++++------
 test-pic-5.ll               |    4 +--
 test-pic-6.ll               |   14 ++++++------
 test-pic-cpool.ll           |    2 -
 test-pic-jtbl.ll            |   40 ++++++++++++++++++------------------
 trunc-to-bool.ll            |   12 +++++------
 14 files changed, 97 insertions(+), 97 deletions(-)


Index: llvm/test/CodeGen/X86/2006-05-11-InstrSched.ll
diff -u llvm/test/CodeGen/X86/2006-05-11-InstrSched.ll:1.5 llvm/test/CodeGen/X86/2006-05-11-InstrSched.ll:1.6
--- llvm/test/CodeGen/X86/2006-05-11-InstrSched.ll:1.5	Fri Dec  1 22:23:08 2006
+++ llvm/test/CodeGen/X86/2006-05-11-InstrSched.ll	Fri Jan 26 02:25:06 2007
@@ -1,5 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -stats 2>&1 | grep 'asm-printer' | grep 39
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -stats 2>&1 |\
+; RUN:     grep 'asm-printer' | grep 39
 
+target datalayout = "e-p:32:32"
 void %foo(int* %mc, int* %bp, int* %ms, int* %xmb, int* %mpp, int* %tpmm, int* %ip, int* %tpim, int* %dpp, int* %tpdm, int* %bpi, int %M) {
 entry:
 	%tmp9 = setlt int %M, 5		; <bool> [#uses=1]


Index: llvm/test/CodeGen/X86/2007-01-08-InstrSched.ll
diff -u llvm/test/CodeGen/X86/2007-01-08-InstrSched.ll:1.3 llvm/test/CodeGen/X86/2007-01-08-InstrSched.ll:1.4
--- llvm/test/CodeGen/X86/2007-01-08-InstrSched.ll:1.3	Mon Jan  8 18:31:52 2007
+++ llvm/test/CodeGen/X86/2007-01-08-InstrSched.ll	Fri Jan 26 02:25:06 2007
@@ -2,7 +2,7 @@
 ; RUN:   %prcontext 'mulss LCPI1_3' 1 | grep mulss | wc -l | grep 1
 ; PR1075
 
-define float %foo(float %x) {
+define float @foo(float %x) {
     %tmp1 = mul float %x, 3.000000e+00
     %tmp3 = mul float %x, 5.000000e+00
     %tmp5 = mul float %x, 7.000000e+00


Index: llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll
diff -u llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll:1.1 llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll:1.2
--- llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll:1.1	Sat Jan 13 18:12:50 2007
+++ llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll	Fri Jan 26 02:25:06 2007
@@ -3,13 +3,11 @@
 ; PR1103
 
 target datalayout = "e-p:64:64"
-target endian = little
-target pointersize = 64
-%i6000 = global [128 x i64] zeroinitializer, align 16
+ at i6000 = global [128 x i64] zeroinitializer, align 16
 
 implementation
 
-define void %foo(i32* %a0, i32* %a1, i32* %a2, i32* %a3, i32* %a4, i32* %a5) {
+define void @foo(i32* %a0, i32* %a1, i32* %a2, i32* %a3, i32* %a4, i32* %a5) {
 b:
 	%r = load i32* %a0
 	%r2 = load i32* %a1
@@ -135,14 +133,14 @@
 	%d753 = bitcast i64 %w1874 to i64
 	%r343 = add i64 %s661, 0
 	%r346 = add i64 %r343, 0
-	%r347 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r346
+	%r347 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r346
 	%r348 = load float* %r347
 	%r352 = add i64 %r343, 0
-	%r353 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r352
+	%r353 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r352
 	%r354 = load float* %r353
-	%r362 = load float* bitcast ([128 x i64]* %i6000 to float*)
+	%r362 = load float* bitcast ([128 x i64]* @i6000 to float*)
 	%r363 = add float 0.000000e+00, %r362
-	%r370 = load float* bitcast ([128 x i64]* %i6000 to float*)
+	%r370 = load float* bitcast ([128 x i64]* @i6000 to float*)
 	%r376 = icmp slt i64 %r16, 0
 	br i1 %r376, label %b377, label %a35b
 b377:
@@ -186,9 +184,9 @@
 	%s923 = phi i64 [ 0, %b514 ], [ %r799, %b712 ]
 	%s933 = phi i64 [ %r533, %b514 ], [ %r795, %b712 ]
 	%r538 = add i64 %w1855, 0
-	%r539 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r538
+	%r539 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r538
 	%r540 = load float* %r539
-	%r551 = load float* bitcast ([128 x i64]* %i6000 to float*)
+	%r551 = load float* bitcast ([128 x i64]* @i6000 to float*)
 	%r562 = sub i64 %s933, 0
 	%r564 = icmp slt i64 %r512, 0
 	br i1 %r564, label %b565, label %a45b
@@ -215,22 +213,22 @@
 a45b714:
 	%r717 = add i64 %e944, 0
 	%r720 = add i64 %r717, 0
-	%r721 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r720
+	%r721 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r720
 	%r722 = load float* %r721
 	%r726 = add i64 %r717, 0
-	%r727 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r726
+	%r727 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r726
 	%r728 = load float* %r727
 	%r732 = add i64 %r717, 0
-	%r733 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r732
+	%r733 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r732
 	%r734 = load float* %r733
 	%r738 = add i64 %r717, 0
-	%r739 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r738
+	%r739 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r738
 	%r740 = load float* %r739
 	%r744 = add i64 %r717, 0
-	%r745 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r744
+	%r745 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r744
 	%r746 = load float* %r745
 	%r750 = add i64 %r717, 0
-	%r751 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r750
+	%r751 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r750
 	%r752 = load float* %r751
 	%r753 = add float %r752, %r746
 	%r754 = add float %r728, %r722
@@ -239,10 +237,10 @@
 	%r757 = add float %r753, %r756
 	%r759 = add float %r757, %r540
 	%r770 = add i64 %r717, 0
-	%r771 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r770
+	%r771 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r770
 	%r772 = load float* %r771
 	%r776 = add i64 %r717, 0
-	%r777 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r776
+	%r777 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r776
 	%r778 = load float* %r777
 	%r781 = add float %r363, %r772
 	%r782 = add float %r781, %r778
@@ -256,7 +254,7 @@
 	%r844 = add i64 %r16, 0
 	%r846 = sext i32 %r60 to i64
 	%r847 = add i64 %r846, 0
-	%r851 = load float* bitcast ([128 x i64]* %i6000 to float*)
+	%r851 = load float* bitcast ([128 x i64]* @i6000 to float*)
 	%r856 = sub i64 %r, 0
 	br label %b858
 b858:
@@ -268,10 +266,10 @@
 	%s1173 = add i64 %b1902, 0
 	%r859 = add i64 %r856, 0
 	%r862 = add i64 %w1891, 0
-	%r863 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r862
+	%r863 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r862
 	%r864 = load float* %r863
 	%r868 = add i64 %w1891, 0
-	%r869 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r868
+	%r869 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r868
 	%r870 = load float* %r869
 	%r873 = sub i64 %r859, 0
 	%r876 = sub i64 %s1173, 0
@@ -338,7 +336,7 @@
 	%d1353 = bitcast i64 %w1915 to i64
 	%r1120 = add i64 %s661, 0
 	%r1121 = add i64 %r1120, 0
-	%r1122 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r1121
+	%r1122 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r1121
 	%r1123 = load float* %r1122
 	%r1132 = bitcast i8* %c22012 to float*
 	%r1134 = getelementptr float* %r1132, i64 %w1915
@@ -412,7 +410,7 @@
 	%r1352 = add i64 %s1523, 0
 	%r1355 = sub i64 %r1352, 0
 	%r1370 = add i64 %d1533, 0
-	%r1371 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r1370
+	%r1371 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r1370
 	%r1372 = load float* %r1371
 	br label %a74b
 a74b:
@@ -446,10 +444,10 @@
 	%r1756 = getelementptr float* %r1754, i64 %w1970
 	%r1757 = load float* %r1756
 	%r1761 = add i64 %r1622, 0
-	%r1762 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r1761
+	%r1762 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r1761
 	%r1763 = load float* %r1762
 	%r1767 = add i64 %r1622, 0
-	%r1768 = getelementptr float* bitcast ([128 x i64]* %i6000 to float*), i64 %r1767
+	%r1768 = getelementptr float* bitcast ([128 x i64]* @i6000 to float*), i64 %r1767
 	%r1772 = add float %r1763, 0.000000e+00
 	%r1773 = add float %r1772, 0.000000e+00
 	%r1809 = add float %r1757, 0.000000e+00


Index: llvm/test/CodeGen/X86/sse-fcopysign.ll
diff -u llvm/test/CodeGen/X86/sse-fcopysign.ll:1.3 llvm/test/CodeGen/X86/sse-fcopysign.ll:1.4
--- llvm/test/CodeGen/X86/sse-fcopysign.ll:1.3	Fri Jan  5 15:53:15 2007
+++ llvm/test/CodeGen/X86/sse-fcopysign.ll	Fri Jan 26 02:25:06 2007
@@ -1,17 +1,17 @@
 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 &&
 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not getp test
 
-define float %test1(float %a, float %b) {
-	%tmp = tail call float %copysignf( float %b, float %a )
+define float @test1(float %a, float %b) {
+	%tmp = tail call float @copysignf( float %b, float %a )
 	ret float %tmp
 }
 
-define double %test2(double %a, float %b, float %c) {
+define double @test2(double %a, float %b, float %c) {
 	%tmp1 = add float %b, %c
 	%tmp2 = fpext float %tmp1 to double
-	%tmp = tail call double %copysign( double %a, double %tmp2 )
+	%tmp = tail call double @copysign( double %a, double %tmp2 )
 	ret double %tmp
 }
 
-declare float %copysignf(float, float)
-declare double %copysign(double, double)
+declare float @copysignf(float, float)
+declare double @copysign(double, double)


Index: llvm/test/CodeGen/X86/test-hidden.ll
diff -u llvm/test/CodeGen/X86/test-hidden.ll:1.2 llvm/test/CodeGen/X86/test-hidden.ll:1.3
--- llvm/test/CodeGen/X86/test-hidden.ll:1.2	Mon Jan 15 12:32:24 2007
+++ llvm/test/CodeGen/X86/test-hidden.ll	Fri Jan 26 02:25:06 2007
@@ -3,18 +3,18 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8.8.0 | grep ".private_extern" | wc -l | grep 2 
 
 %struct.Person = type { i32 }
-%a = hidden global i32 0
-%b = external global i32
+ at a = hidden global i32 0
+ at b = external global i32
 
 implementation   ; Functions:
 
-define weak hidden void %_ZN6Person13privateMethodEv(%struct.Person* %this) {
+define weak hidden void @_ZN6Person13privateMethodEv(%struct.Person* %this) {
   ret void
 }
 
-declare void %function(i32)
+declare void @function(i32)
 
-define weak void %_ZN6PersonC1Ei(%struct.Person* %this, i32 %_c) {
+define weak void @_ZN6PersonC1Ei(%struct.Person* %this, i32 %_c) {
   ret void
 }
 


Index: llvm/test/CodeGen/X86/test-pic-1.ll
diff -u llvm/test/CodeGen/X86/test-pic-1.ll:1.1 llvm/test/CodeGen/X86/test-pic-1.ll:1.2
--- llvm/test/CodeGen/X86/test-pic-1.ll:1.1	Fri Jan 12 13:20:47 2007
+++ llvm/test/CodeGen/X86/test-pic-1.ll	Fri Jan 26 02:25:06 2007
@@ -4,15 +4,15 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOT | wc -l | grep 3 &&
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 0
 
-%ptr = external global i32* 
-%dst = external global i32 
-%src = external global i32 
+ at ptr = external global i32* 
+ at dst = external global i32 
+ at src = external global i32 
 
-define void %foo() {
+define void @foo() {
 entry:
-    store i32* %dst, i32** %ptr
-    %tmp.s = load i32* %src
-    store i32 %tmp.s, i32* %dst
+    store i32* @dst, i32** @ptr
+    %tmp.s = load i32* @src
+    store i32 %tmp.s, i32* @dst
     ret void
 }
 


Index: llvm/test/CodeGen/X86/test-pic-2.ll
diff -u llvm/test/CodeGen/X86/test-pic-2.ll:1.1 llvm/test/CodeGen/X86/test-pic-2.ll:1.2
--- llvm/test/CodeGen/X86/test-pic-2.ll:1.1	Fri Jan 12 13:20:47 2007
+++ llvm/test/CodeGen/X86/test-pic-2.ll	Fri Jan 26 02:25:06 2007
@@ -3,15 +3,15 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 4
 
-%ptr = internal global i32* null
-%dst = internal global i32 0
-%src = internal global i32 0
+ at ptr = internal global i32* null
+ at dst = internal global i32 0
+ at src = internal global i32 0
 
-define void %foo() {
+define void @foo() {
 entry:
-    store i32* %dst, i32** %ptr
-    %tmp.s = load i32* %src
-    store i32 %tmp.s, i32* %dst
+    store i32* @dst, i32** @ptr
+    %tmp.s = load i32* @src
+    store i32 %tmp.s, i32* @dst
     ret void
 }
 


Index: llvm/test/CodeGen/X86/test-pic-3.ll
diff -u llvm/test/CodeGen/X86/test-pic-3.ll:1.1 llvm/test/CodeGen/X86/test-pic-3.ll:1.2
--- llvm/test/CodeGen/X86/test-pic-3.ll:1.1	Fri Jan 12 13:20:47 2007
+++ llvm/test/CodeGen/X86/test-pic-3.ll	Fri Jan 26 02:25:06 2007
@@ -3,12 +3,12 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep PLT | wc -l | grep 1
 
-define void %bar() {
+define void @bar() {
 entry:
-    call void(...)* %foo()
+    call void(...)* @foo()
     br label %return
 return:
     ret void
 }
 
-declare void %foo(...)
+declare void @foo(...)


Index: llvm/test/CodeGen/X86/test-pic-4.ll
diff -u llvm/test/CodeGen/X86/test-pic-4.ll:1.1 llvm/test/CodeGen/X86/test-pic-4.ll:1.2
--- llvm/test/CodeGen/X86/test-pic-4.ll:1.1	Fri Jan 12 13:20:47 2007
+++ llvm/test/CodeGen/X86/test-pic-4.ll	Fri Jan 26 02:25:06 2007
@@ -5,17 +5,17 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep "GOT" | wc -l | grep 1 &&
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep "GOTOFF" | wc -l | grep 0
 
-%pfoo = external global void(...)* 
+ at pfoo = external global void(...)* 
 
-define void %bar() {
+define void @bar() {
 entry:
-    %tmp = call void(...)*(...)* %afoo()
-    store void(...)* %tmp, void(...)** %pfoo
-    %tmp1 = load void(...)** %pfoo
+    %tmp = call void(...)*(...)* @afoo()
+    store void(...)* %tmp, void(...)** @pfoo
+    %tmp1 = load void(...)** @pfoo
     call void(...)* %tmp1()
     br label %return
 return:
     ret void
 }
 
-declare void(...)* %afoo(...)
+declare void(...)* @afoo(...)


Index: llvm/test/CodeGen/X86/test-pic-5.ll
diff -u llvm/test/CodeGen/X86/test-pic-5.ll:1.1 llvm/test/CodeGen/X86/test-pic-5.ll:1.2
--- llvm/test/CodeGen/X86/test-pic-5.ll:1.1	Fri Jan 12 13:20:47 2007
+++ llvm/test/CodeGen/X86/test-pic-5.ll	Fri Jan 26 02:25:06 2007
@@ -3,9 +3,9 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep PLT | wc -l | grep 1
 
-%ptr = external global i32* 
+ at ptr = external global i32* 
 
-define void %foo() {
+define void @foo() {
 entry:
     %ptr = malloc i32, i32 10
     ret void


Index: llvm/test/CodeGen/X86/test-pic-6.ll
diff -u llvm/test/CodeGen/X86/test-pic-6.ll:1.1 llvm/test/CodeGen/X86/test-pic-6.ll:1.2
--- llvm/test/CodeGen/X86/test-pic-6.ll:1.1	Wed Jan 17 04:33:08 2007
+++ llvm/test/CodeGen/X86/test-pic-6.ll	Fri Jan 26 02:25:06 2007
@@ -3,15 +3,15 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOT | wc -l | grep 3
 
-%ptr = global i32* null
-%dst = global i32 0
-%src = global i32 0
+ at ptr = global i32* null
+ at dst = global i32 0
+ at src = global i32 0
 
-define void %foo() {
+define void @foo() {
 entry:
-    store i32* %dst, i32** %ptr
-    %tmp.s = load i32* %src
-    store i32 %tmp.s, i32* %dst
+    store i32* @dst, i32** @ptr
+    %tmp.s = load i32* @src
+    store i32 %tmp.s, i32* @dst
     ret void
 }
 


Index: llvm/test/CodeGen/X86/test-pic-cpool.ll
diff -u llvm/test/CodeGen/X86/test-pic-cpool.ll:1.2 llvm/test/CodeGen/X86/test-pic-cpool.ll:1.3
--- llvm/test/CodeGen/X86/test-pic-cpool.ll:1.2	Fri Jan 12 23:06:52 2007
+++ llvm/test/CodeGen/X86/test-pic-cpool.ll	Fri Jan 26 02:25:06 2007
@@ -4,7 +4,7 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 2 &&
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep CPI | wc -l | grep 4
 
-define double %foo(i32 %a.u) {
+define double @foo(i32 %a.u) {
 entry:
     %tmp = icmp eq i32 %a.u,0
     %retval = select i1 %tmp, double 4.561230e+02, double 1.234560e+02


Index: llvm/test/CodeGen/X86/test-pic-jtbl.ll
diff -u llvm/test/CodeGen/X86/test-pic-jtbl.ll:1.1 llvm/test/CodeGen/X86/test-pic-jtbl.ll:1.2
--- llvm/test/CodeGen/X86/test-pic-jtbl.ll:1.1	Fri Jan 12 13:20:47 2007
+++ llvm/test/CodeGen/X86/test-pic-jtbl.ll	Fri Jan 26 02:25:06 2007
@@ -5,53 +5,53 @@
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 1 &&
 ; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep JTI | wc -l | grep 15
 
-define void %bar(i32 %n.u) {
+define void @bar(i32 %n.u) {
 entry:
     switch i32 %n.u, label %bb12 [i32 1, label %bb i32 2, label %bb6 i32 4, label %bb7 i32 5, label %bb8 i32 6, label %bb10 i32 7, label %bb1 i32 8, label %bb3 i32 9, label %bb4 i32 10, label %bb9 i32 11, label %bb2 i32 12, label %bb5 i32 13, label %bb11 ]
 bb:
-    tail call void(...)* %foo1()
+    tail call void(...)* @foo1()
     ret void
 bb1:
-    tail call void(...)* %foo2()
+    tail call void(...)* @foo2()
     ret void
 bb2:
-    tail call void(...)* %foo6()
+    tail call void(...)* @foo6()
     ret void
 bb3:
-    tail call void(...)* %foo3()
+    tail call void(...)* @foo3()
     ret void
 bb4:
-    tail call void(...)* %foo4()
+    tail call void(...)* @foo4()
     ret void
 bb5:
-    tail call void(...)* %foo5()
+    tail call void(...)* @foo5()
     ret void
 bb6:
-    tail call void(...)* %foo1()
+    tail call void(...)* @foo1()
     ret void
 bb7:
-    tail call void(...)* %foo2()
+    tail call void(...)* @foo2()
     ret void
 bb8:
-    tail call void(...)* %foo6()
+    tail call void(...)* @foo6()
     ret void
 bb9:
-    tail call void(...)* %foo3()
+    tail call void(...)* @foo3()
     ret void
 bb10:
-    tail call void(...)* %foo4()
+    tail call void(...)* @foo4()
     ret void
 bb11:
-    tail call void(...)* %foo5()
+    tail call void(...)* @foo5()
     ret void
 bb12:
-    tail call void(...)* %foo6()
+    tail call void(...)* @foo6()
     ret void
 }
 
-declare void %foo1(...)
-declare void %foo2(...)
-declare void %foo6(...)
-declare void %foo3(...)
-declare void %foo4(...)
-declare void %foo5(...)
+declare void @foo1(...)
+declare void @foo2(...)
+declare void @foo6(...)
+declare void @foo3(...)
+declare void @foo4(...)
+declare void @foo5(...)


Index: llvm/test/CodeGen/X86/trunc-to-bool.ll
diff -u llvm/test/CodeGen/X86/trunc-to-bool.ll:1.7 llvm/test/CodeGen/X86/trunc-to-bool.ll:1.8
--- llvm/test/CodeGen/X86/trunc-to-bool.ll:1.7	Fri Jan 12 23:06:52 2007
+++ llvm/test/CodeGen/X86/trunc-to-bool.ll	Fri Jan 26 02:25:06 2007
@@ -5,12 +5,12 @@
 ; RUN: llvm-as < %s | llc -march=x86 | grep '\(and\)\|\(test.*\$1\)' | \
 ; RUN:   wc -l | grep 6
 
-define i1 %test1(i32 %X) zext {
+define i1 @test1(i32 %X) zext {
     %Y = trunc i32 %X to i1
     ret i1 %Y
 }
 
-define i1 %test2(i32 %val, i32 %mask) {
+define i1 @test2(i32 %val, i32 %mask) {
 entry:
     %mask = trunc i32 %mask to i8
     %shifted = ashr i32 %val, i8 %mask
@@ -23,7 +23,7 @@
     ret i1 false
 }
 
-define i32 %test3(i8* %ptr) {
+define i32 @test3(i8* %ptr) {
     %val = load i8* %ptr
     %tmp = trunc i8 %val to i1
     br i1 %tmp, label %cond_true, label %cond_false
@@ -33,7 +33,7 @@
     ret i32 42
 }
 
-define i32 %test4(i8* %ptr) {
+define i32 @test4(i8* %ptr) {
     %tmp = ptrtoint i8* %ptr to i1
     br i1 %tmp, label %cond_true, label %cond_false
 cond_true:
@@ -42,7 +42,7 @@
     ret i32 42
 }
 
-define i32 %test5(float %f) {
+define i32 @test5(float %f) {
     %tmp = fptoui float %f to i1
     br i1 %tmp, label %cond_true, label %cond_false
 cond_true:
@@ -51,7 +51,7 @@
     ret i32 42
 }
 
-define i32 %test6(double %d) {
+define i32 @test6(double %d) {
     %tmp = fptosi double %d to i1
     br i1 %tmp, label %cond_true, label %cond_false
 cond_true:






More information about the llvm-commits mailing list