[llvm-commits] [llvm] r74289 - in /llvm/trunk/test/CodeGen: ARM/bic.ll ARM/orn.ll Thumb2/thumb2-bic.ll Thumb2/thumb2-orn.ll
David Goodwin
david_goodwin at apple.com
Fri Jun 26 09:20:07 PDT 2009
Author: david_goodwin
Date: Fri Jun 26 11:20:06 2009
New Revision: 74289
URL: http://llvm.org/viewvc/llvm-project?rev=74289&view=rev
Log:
ORN and BIC tests.
Added:
llvm/trunk/test/CodeGen/ARM/bic.ll
llvm/trunk/test/CodeGen/Thumb2/thumb2-bic.ll
Removed:
llvm/trunk/test/CodeGen/ARM/orn.ll
Modified:
llvm/trunk/test/CodeGen/Thumb2/thumb2-orn.ll
Added: llvm/trunk/test/CodeGen/ARM/bic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/bic.ll?rev=74289&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/bic.ll (added)
+++ llvm/trunk/test/CodeGen/ARM/bic.ll Fri Jun 26 11:20:06 2009
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=arm | grep {bic\\W*r\[0-9\]*,\\W*r\[0-9\]*,\\W*r\[0-9\]*} | count 2
+
+define i32 @f1(i32 %a, i32 %b) {
+ %tmp = xor i32 %b, 4294967295
+ %tmp1 = and i32 %a, %tmp
+ ret i32 %tmp1
+}
+
+define i32 @f2(i32 %a, i32 %b) {
+ %tmp = xor i32 %b, 4294967295
+ %tmp1 = and i32 %tmp, %a
+ ret i32 %tmp1
+}
Removed: llvm/trunk/test/CodeGen/ARM/orn.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/orn.ll?rev=74288&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/orn.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/orn.ll (removed)
@@ -1,13 +0,0 @@
-; RUN: llvm-as < %s | llc -march=arm | grep {bic\\W*r\[0-9\]*,\\W*r\[0-9\]*,\\W*r\[0-9\]*} | count 2
-
-define i32 @f1(i32 %a, i32 %b) {
- %tmp = xor i32 %b, 4294967295
- %tmp1 = and i32 %a, %tmp
- ret i32 %tmp1
-}
-
-define i32 @f2(i32 %a, i32 %b) {
- %tmp = xor i32 %b, 4294967295
- %tmp1 = and i32 %tmp, %a
- ret i32 %tmp1
-}
Added: llvm/trunk/test/CodeGen/Thumb2/thumb2-bic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb2/thumb2-bic.ll?rev=74289&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Thumb2/thumb2-bic.ll (added)
+++ llvm/trunk/test/CodeGen/Thumb2/thumb2-bic.ll Fri Jun 26 11:20:06 2009
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {bic\\W*r\[0-9\]*,\\W*r\[0-9\]*,\\W*r\[0-9\]*} | count 2
+
+define i32 @f1(i32 %a, i32 %b) {
+ %tmp = xor i32 %b, 4294967295
+ %tmp1 = and i32 %a, %tmp
+ ret i32 %tmp1
+}
+
+define i32 @f2(i32 %a, i32 %b) {
+ %tmp = xor i32 %b, 4294967295
+ %tmp1 = and i32 %tmp, %a
+ ret i32 %tmp1
+}
Modified: llvm/trunk/test/CodeGen/Thumb2/thumb2-orn.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Thumb2/thumb2-orn.ll?rev=74289&r1=74288&r2=74289&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Thumb2/thumb2-orn.ll (original)
+++ llvm/trunk/test/CodeGen/Thumb2/thumb2-orn.ll Fri Jun 26 11:20:06 2009
@@ -1,13 +1,13 @@
-; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {bic\\W*r\[0-9\]*,\\W*r\[0-9\]*,\\W*r\[0-9\]*} | count 2
+; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {orn\\W*r\[0-9\]*,\\W*r\[0-9\]*,\\W*r\[0-9\]*} | count 2
define i32 @f1(i32 %a, i32 %b) {
%tmp = xor i32 %b, 4294967295
- %tmp1 = and i32 %a, %tmp
+ %tmp1 = or i32 %a, %tmp
ret i32 %tmp1
}
define i32 @f2(i32 %a, i32 %b) {
%tmp = xor i32 %b, 4294967295
- %tmp1 = and i32 %tmp, %a
+ %tmp1 = or i32 %tmp, %a
ret i32 %tmp1
}
More information about the llvm-commits
mailing list