mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-18 16:03:17 +00:00
add a test for adds adcs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45d10470c9
commit
2d8680a34b
@ -3,7 +3,9 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #1" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ".word.*2147483647" | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "mov r0, #-2147483648" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ".word.*4294967295" | wc -l | grep 1
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep ".word.*4294967295" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "adds" | wc -l | grep 1 &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep "adcs" | wc -l | grep 1
|
||||
|
||||
long %f1() {
|
||||
entry:
|
||||
@ -29,3 +31,9 @@ long %f5() {
|
||||
entry:
|
||||
ret long 9223372036854775807
|
||||
}
|
||||
|
||||
ulong %f6(ulong %x, ulong %y) {
|
||||
entry:
|
||||
%tmp1 = add ulong %y, 1
|
||||
ret ulong %tmp1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user