forked from OSchip/llvm-project
parent
a8bbc63c1f
commit
77d4771405
|
@ -1,5 +1,5 @@
|
|||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bx | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep bx | count 1
|
||||
|
||||
define i32 @t1(i32 %a, i32 %b) {
|
||||
%tmp2 = icmp eq i32 %a, 0
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxlt | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxgt | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxge | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep bxlt | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep bxgt | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep bxge | count 1
|
||||
|
||||
define i32 @t1(i32 %a, i32 %b, i32 %c, i32 %d) {
|
||||
%tmp2 = icmp sgt i32 %c, 10
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep cmpne | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bx | count 2
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep cmpne | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep bx | count 2
|
||||
|
||||
define i32 @t1(i32 %a, i32 %b, i32 %c, i32 %d) {
|
||||
switch i32 %c, label %cond_next [
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep subgt | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep suble | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep subgt | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep suble | count 1
|
||||
; FIXME: Check for # of unconditional branch after adding branch folding post ifcvt.
|
||||
|
||||
define i32 @t(i32 %a, i32 %b) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
|
||||
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep blge | count 1
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep blge | count 1
|
||||
|
||||
@x = external global i32* ; <i32**> [#uses=1]
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep cmpne | count 1
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep ldmhi | count 1
|
||||
|
||||
define void @foo(i32 %X, i32 %Y) {
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep cmpeq | count 1
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep moveq | count 1
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep ldmeq | count 1
|
||||
; FIXME: Need post-ifcvt branch folding to get rid of the extra br at end of BB1.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
|
||||
; RUN: llc -march=arm -mtriple=arm-apple-darwin | \
|
||||
; RUN: grep ldmne | count 1
|
||||
|
||||
%struct.SString = type { i8*, i32, i32 }
|
||||
|
|
Loading…
Reference in New Issue