2 ; RUN: llvm-as < %s | llc | grep lrvr | count 2
3 ; RUN: llvm-as < %s | llc | grep lrvgr | count 1
4 ; RUN: llvm-as < %s | llc | grep lrvh | count 1
5 ; RUN: llvm-as < %s | llc | grep {lrv.%} | count 1
6 ; RUN: llvm-as < %s | llc | grep {lrvg.%} | count 1
9 target datalayout = "E-p:64:64:64-i8:8:16-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-a0:16:16"
10 target triple = "s390x-linux"
13 define i16 @foo(i16 zeroext %a) zeroext {
14 %res = tail call i16 @llvm.bswap.i16(i16 %a)
18 define i32 @foo2(i32 zeroext %a) zeroext {
19 %res = tail call i32 @llvm.bswap.i32(i32 %a)
23 define i64 @foo3(i64 %a) zeroext {
24 %res = tail call i64 @llvm.bswap.i64(i64 %a)
28 define i16 @foo4(i16* %b) zeroext {
30 %res = tail call i16 @llvm.bswap.i16(i16 %a)
34 define i32 @foo5(i32* %b) zeroext {
36 %res = tail call i32 @llvm.bswap.i32(i32 %a)
40 define i64 @foo6(i64* %b) {
42 %res = tail call i64 @llvm.bswap.i64(i64 %a)
46 declare i16 @llvm.bswap.i16(i16) nounwind readnone
47 declare i32 @llvm.bswap.i32(i32) nounwind readnone
48 declare i64 @llvm.bswap.i64(i64) nounwind readnone