1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/Transforms/SimplifyLibCalls/ToAscii.ll
Reid Spencer 43899915e9 For PR1319:
Fix syntax of tests to ensure grep pattern is properly quoted.

llvm-svn: 36134
2007-04-16 15:31:49 +00:00

23 lines
633 B
LLVM

; Test that the ToAsciiOptimizer works correctly
; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
; RUN: not grep {call.*toascii}
declare int %toascii(int)
implementation ; Functions:
int %main () {
%val1 = call int %toascii(int 1)
%val2 = call int %toascii(int 0)
%val3 = call int %toascii(int 127)
%val4 = call int %toascii(int 128)
%val5 = call int %toascii(int 255)
%val6 = call int %toascii(int 256)
%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
ret int %rslt5
}