mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
43899915e9
Fix syntax of tests to ensure grep pattern is properly quoted. llvm-svn: 36134
30 lines
822 B
LLVM
30 lines
822 B
LLVM
; Test that the ToAsciiOptimizer works correctly
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
|
|
; RUN: not grep {call.*%ffs}
|
|
|
|
declare int %ffs(int)
|
|
declare int %ffsl(int)
|
|
declare int %ffsll(long)
|
|
|
|
%non_const = external global int
|
|
|
|
implementation ; Functions:
|
|
|
|
int %main () {
|
|
%arg = load int* %non_const
|
|
%val0 = call int %ffs(int %arg)
|
|
%val1 = call int %ffs(int 1)
|
|
%val2 = call int %ffs(int 2048)
|
|
%val3 = call int %ffsl(int 65536)
|
|
%val4 = call int %ffsll(long 1024)
|
|
%val5 = call int %ffsll(long 17179869184)
|
|
%val6 = call int %ffsll(long 1152921504606846976)
|
|
%rslt1 = add int %val1, %val2
|
|
%rslt2 = add int %val3, %val4
|
|
%rslt3 = add int %val5, %val6
|
|
%rslt4 = add int %rslt1, %rslt2
|
|
%rslt5 = add int %rslt4, %rslt3
|
|
%rslt6 = add int %rslt5, %val0
|
|
ret int %rslt5
|
|
}
|