1 ; RUN: llc -mtriple=aarch64-linux-gnuabi -O0 -fast-isel < %s | FileCheck %s
2 ; RUN: llc -mtriple=aarch64_be-linux-gnuabi -O0 -fast-isel < %s | FileCheck %s --check-prefix=CHECK-BE
4 define void @test_bitcast_v8f16_to_v4f32(<8 x half> %a) {
5 ; CHECK-LABEL: test_bitcast_v8f16_to_v4f32:
8 ; CHECK-BE-LABEL: test_bitcast_v8f16_to_v4f32:
11 %x = alloca <4 x float>, align 16
12 %y = bitcast <8 x half> %a to <4 x float>
13 store <4 x float> %y, <4 x float>* %x, align 16
17 define void @test_bitcast_v8f16_to_v2f64(<8 x half> %a) {
18 ; CHECK-LABEL: test_bitcast_v8f16_to_v2f64:
21 ; CHECK-BE-LABEL: test_bitcast_v8f16_to_v2f64:
24 %x = alloca <2 x double>, align 16
25 %y = bitcast <8 x half> %a to <2 x double>
26 store <2 x double> %y, <2 x double>* %x, align 16
30 define void @test_bitcast_v8f16_to_fp128(<8 x half> %a) {
31 ; CHECK-LABEL: test_bitcast_v8f16_to_fp128:
34 ; CHECK-BE-LABEL: test_bitcast_v8f16_to_fp128:
37 %x = alloca fp128, align 16
38 %y = bitcast <8 x half> %a to fp128
39 store fp128 %y, fp128* %x, align 16
43 define void @test_bitcast_v4f16_to_v2f32(<4 x half> %a) {
44 ; CHECK-LABEL: test_bitcast_v4f16_to_v2f32:
47 ; CHECK-BE-LABEL: test_bitcast_v4f16_to_v2f32:
50 %x = alloca <2 x float>, align 8
51 %y = bitcast <4 x half> %a to <2 x float>
52 store <2 x float> %y, <2 x float>* %x, align 8
56 define void @test_bitcast_v4f16_to_v1f64(<4 x half> %a) {
57 ; CHECK-LABEL: test_bitcast_v4f16_to_v1f64:
60 ; CHECK-BE-LABEL: test_bitcast_v4f16_to_v1f64:
63 %x = alloca <1 x double>, align 8
64 %y = bitcast <4 x half> %a to <1 x double>
65 store <1 x double> %y, <1 x double>* %x, align 8