Modernize testcase
authorChris Lattner <sabre@nondot.org>
Mon, 10 Mar 2003 19:44:01 +0000 (19:44 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Mar 2003 19:44:01 +0000 (19:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5732 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/mul.ll

index 3f171f4522d73a88f43ba21ca86d876caf3cdde2..a0a280810676d4f0ec7ddcb513be656a075da77d 100644 (file)
@@ -8,23 +8,20 @@
 
 implementation
 
-int "test1"(int %A)
-begin
+int %test1(int %A) {
        %B = mul int %A, 1
        ret int %B
-end
+}
 
-int "test2"(int %A)
-begin
+int %test2(int %A) {
        %B = mul int %A, 2   ; Should convert to an add instruction
        ret int %B
-end
+}
 
-int "test3"(int %A)
-begin
+int %test3(int %A) {
        %B = mul int %A, 0   ; This should disappear entirely
        ret int %B
-end
+}
 
 double %test4(double %A) {
        %B = mul double 1.0, %A   ; This is safe for FP