mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
564 B
LLVM
26 lines
564 B
LLVM
; bswap should be constant folded when it is passed a constant argument
|
|
|
|
; RUN: opt < %s -constprop -S | not grep call
|
|
|
|
declare i16 @llvm.bswap.i16(i16)
|
|
|
|
declare i32 @llvm.bswap.i32(i32)
|
|
|
|
declare i64 @llvm.bswap.i64(i64)
|
|
|
|
define i16 @W() {
|
|
%Z = call i16 @llvm.bswap.i16( i16 1 ) ; <i16> [#uses=1]
|
|
ret i16 %Z
|
|
}
|
|
|
|
define i32 @X() {
|
|
%Z = call i32 @llvm.bswap.i32( i32 1 ) ; <i32> [#uses=1]
|
|
ret i32 %Z
|
|
}
|
|
|
|
define i64 @Y() {
|
|
%Z = call i64 @llvm.bswap.i64( i64 1 ) ; <i64> [#uses=1]
|
|
ret i64 %Z
|
|
}
|
|
|