1 // REQUIRES: aarch64-registered-target
3 // RUN: %clang_cc1 -triple arm64-windows -O1 \
4 // RUN: -fms-compatibility -fms-compatibility-version=17.00 \
6 // RUN: -isystem %S/Inputs/include %s -o - -emit-llvm 2>&1 \
16 unsigned short check_byteswap_ushort(unsigned short val
) {
17 // CHECK: call i16 @llvm.bswap.i16(i16 %val)
18 return _byteswap_ushort(val
);
21 unsigned long check_byteswap_ulong(unsigned long val
) {
22 // CHECK: call i32 @llvm.bswap.i32(i32 %val)
23 return _byteswap_ulong(val
);
26 unsigned __int64
check_byteswap_uint64(unsigned __int64 val
) {
27 // CHECK: call i64 @llvm.bswap.i64(i64 %val)
28 return _byteswap_uint64(val
);