[llvm-commits] CVS: llvm/test/Regression/CodeGen/Alpha/bsr.ll
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Apr 13 09:16:17 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/Alpha:
bsr.ll added (r1.1)
---
Log message:
regression case for faster call sequence
---
Diffs of the changes: (+15 -0)
bsr.ll | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Index: llvm/test/Regression/CodeGen/Alpha/bsr.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/bsr.ll:1.1
*** /dev/null Wed Apr 13 11:16:11 2005
--- llvm/test/Regression/CodeGen/Alpha/bsr.ll Wed Apr 13 11:16:01 2005
***************
*** 0 ****
--- 1,15 ----
+ ; Make sure this testcase codegens the bsr instruction
+ ; RUN: llvm-as < %s | llc -march=alpha | grep 'bsr'
+
+
+ implementation ; Functions:
+
+ long %abc(int %x) {
+ entry:
+ %tmp.2 = add int %x, -1 ; <int> [#uses=1]
+ %tmp.0 = call long %abc( int %tmp.2 ) ; <long> [#uses=1]
+ %tmp.5 = add int %x, -2 ; <int> [#uses=1]
+ %tmp.3 = call long %abc( int %tmp.5 ) ; <long> [#uses=1]
+ %tmp.6 = add long %tmp.0, %tmp.3 ; <long> [#uses=1]
+ ret long %tmp.6
+ }
More information about the llvm-commits
mailing list