1 ; bswap should be constant folded when it is passed a constant argument
3 ; RUN: opt < %s -constprop -S | not grep call
5 declare i16 @llvm.bswap.i16(i16)
7 declare i32 @llvm.bswap.i32(i32)
9 declare i64 @llvm.bswap.i64(i64)
12 %Z = call i16 @llvm.bswap.i16( i16 1 ) ; <i16> [#uses=1]
17 %Z = call i32 @llvm.bswap.i32( i32 1 ) ; <i32> [#uses=1]
22 %Z = call i64 @llvm.bswap.i64( i64 1 ) ; <i64> [#uses=1]