1; Show that we know how to translate converting signed integer to floast. 2 3; REQUIRES: allow_dump 4 5; Compile using standalone assembler. 6; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ 7; RUN: --reg-use=s20 | FileCheck %s --check-prefix=ASM 8 9; Show bytes in assembled standalone code. 10; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 11; RUN: --args -Om1 --reg-use=s20 | FileCheck %s --check-prefix=DIS 12 13; Compile using integrated assembler. 14; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ 15; RUN: --reg-use=s20 \ 16; RUN: | FileCheck %s --check-prefix=IASM 17 18; Show bytes in assembled integrated code. 19; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 20; RUN: --args -Om1 --reg-use=s20 | FileCheck %s --check-prefix=DIS 21 22define internal float @SignedIntToFloat() { 23; ASM-LABEL: SignedIntToFloat: 24; DIS-LABEL: 00000000 <SignedIntToFloat>: 25; IASM-LABEL: SignedIntToFloat: 26 27entry: 28; ASM: .LSignedIntToFloat$entry: 29; IASM: .LSignedIntToFloat$entry: 30 31 %v = sitofp i32 17 to float 32 33; ASM: vcvt.f32.s32 s20, s20 34; DIS: 10: eeb8aaca 35; IASM-NOT: vcvt 36 37 ret float %v 38} 39 40define internal <4 x float> @IntVecToFloatVec(<4 x i32> %a) { 41; ASM-LABEL: IntVecToFloatVec: 42; DIS-LABEL: 00000030 <IntVecToFloatVec>: 43; IASM-LABEL: IntVecToFloatVec: 44 45 %v = sitofp <4 x i32> %a to <4 x float> 46 47; ASM: vcvt.f32.s32 q0, q0 48; DIS: 40: f3bb0640 49; IASM-NOT: vcvt 50 51 ret <4 x float> %v 52} 53