1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=aarch64-apple-ios -disable-post-ra | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Part of PR21549: going through the stack isn't ideal but is correct. 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdefine i16 @test_bitcast_v2i8_to_i16(<2 x i8> %a) { 6*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test_bitcast_v2i8_to_i16 7*9880d681SAndroid Build Coastguard Worker; CHECK: mov.s [[WREG_HI:w[0-9]+]], v0[1] 8*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: fmov [[WREG_LO:w[0-9]+]], s0 9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: strb [[WREG_HI]], [sp, #15] 10*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: strb [[WREG_LO]], [sp, #14] 11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ldrh w0, [sp, #14] 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker %aa = bitcast <2 x i8> %a to i16 14*9880d681SAndroid Build Coastguard Worker ret i16 %aa 15*9880d681SAndroid Build Coastguard Worker} 16