1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-unknown-linux-gnu < %s | FileCheck %s
4 define <2 x i32> @test1(<2 x i16> %v2i16) {
7 ; CHECK-NEXT: rev32 v0.8b, v0.8b
8 ; CHECK-NEXT: sshr v0.2s, v0.2s, #16
10 %v2i16_rev = call <2 x i16> @llvm.bswap.v2i16(<2 x i16> %v2i16)
11 %v2i32 = sext <2 x i16> %v2i16_rev to <2 x i32>
15 define <2 x float> @test2(<2 x i16> %v2i16) {
18 ; CHECK-NEXT: rev32 v0.8b, v0.8b
19 ; CHECK-NEXT: sshr v0.2s, v0.2s, #16
20 ; CHECK-NEXT: scvtf v0.2s, v0.2s
22 %v2i16_rev = call <2 x i16> @llvm.bswap.v2i16(<2 x i16> %v2i16)
23 %v2f32 = sitofp <2 x i16> %v2i16_rev to <2 x float>
24 ret <2 x float> %v2f32
27 declare <2 x i16> @llvm.bswap.v2i16(<2 x i16>) nounwind readnone