summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-18 19:43:21 +0000
committerChris Lattner <sabre@nondot.org>2003-02-18 19:43:21 +0000
commit2ae37b02299c795e60ee762297cd2a54852a7987 (patch)
tree621b03a144df580cec76a1bd6e8e9dcc1f19c0a3
parentc5fccf34ab791a469a43d5b86de38dcbfc60af4c (diff)
downloadbcm5719-llvm-2ae37b02299c795e60ee762297cd2a54852a7987.tar.gz
bcm5719-llvm-2ae37b02299c795e60ee762297cd2a54852a7987.zip
Modernize testcases
llvm-svn: 5589
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/add.ll10
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/sub.ll10
2 files changed, 10 insertions, 10 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/add.ll b/llvm/test/Regression/Transforms/InstCombine/add.ll
index 8247d055055..71fa7e5c035 100644
--- a/llvm/test/Regression/Transforms/InstCombine/add.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/add.ll
@@ -10,33 +10,33 @@
implementation
-int "test1"(int %A)
+int %test1(int %A)
begin
%B = add int %A, 0
ret int %B
end
-int "test2"(int %A)
+int %test2(int %A)
begin
%B = add int %A, 5
%C = add int %B, -5
ret int %C
end
-int "test3"(int %A)
+int %test3(int %A)
begin
%B = add int %A, 5
%C = sub int %B, 5 ;; This should get converted to an add
ret int %C
end
-int "test4"(int %A, int %B) {
+int %test4(int %A, int %B) {
%C = sub int 0, %A
%D = add int %B, %C ; D = B + -A = B - A
ret int %D
}
-int "test5"(int %A, int %B) {
+int %test5(int %A, int %B) {
%C = sub int 0, %A
%D = add int %C, %B ; D = -A + B = B - A
ret int %D
diff --git a/llvm/test/Regression/Transforms/InstCombine/sub.ll b/llvm/test/Regression/Transforms/InstCombine/sub.ll
index f807d7e042f..8b164cb51e5 100644
--- a/llvm/test/Regression/Transforms/InstCombine/sub.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/sub.ll
@@ -8,29 +8,29 @@
implementation
-int "test1"(int %A) {
+int %test1(int %A) {
%B = sub int %A, %A ; ISA constant 0
ret int %B
}
-int "test2"(int %A) {
+int %test2(int %A) {
%B = sub int %A, 0
ret int %B
}
-int "test3"(int %A) {
+int %test3(int %A) {
%B = sub int 0, %A ; B = -A
%C = sub int 0, %B ; C = -B = A
ret int %C
}
-int "test4"(int %A, int %x) {
+int %test4(int %A, int %x) {
%B = sub int 0, %A
%C = sub int %x, %B
ret int %C
}
-int "test5"(int %A, int %Bok, int %Cok) {
+int %test5(int %A, int %Bok, int %Cok) {
%D = sub int %Bok, %Cok
%E = sub int %A, %D
ret int %E
OpenPOWER on IntegriCloud