brintos

brintos / llvm-project-archived public Read only

0
0
Text · 734 B · 2866214 Raw
22 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc < %s -mtriple=aarch64-apple-ios -disable-post-ra | FileCheck %s3 4; Part of PR21549: going through the stack isn't ideal but is correct.5 6define i16 @test_bitcast_v2i8_to_i16(<2 x i8> %a) {7; CHECK-LABEL: test_bitcast_v2i8_to_i16:8; CHECK:       ; %bb.0:9; CHECK-NEXT:    sub sp, sp, #1610; CHECK-NEXT:    .cfi_def_cfa_offset 1611; CHECK-NEXT:    ; kill: def $d0 killed $d0 def $q012; CHECK-NEXT:    mov s1, v0[1]13; CHECK-NEXT:    str b0, [sp, #14]14; CHECK-NEXT:    stur b1, [sp, #15]15; CHECK-NEXT:    ldrh w0, [sp, #14]16; CHECK-NEXT:    add sp, sp, #1617; CHECK-NEXT:    ret18 19  %aa = bitcast <2 x i8> %a to i1620  ret i16 %aa21}22