1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mcpu=pwr9 -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
3 ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s --check-prefix=P9LE
4 ; RUN: llc -mcpu=pwr9 -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
5 ; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=P9BE
6 ; RUN: llc -mcpu=pwr8 -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
7 ; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s --check-prefix=P8LE
8 ; RUN: llc -mcpu=pwr8 -verify-machineinstrs -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
9 ; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=P8BE
11 define i8 @scalar_to_vector_half(ptr nocapture readonly %ad) {
12 ; P9LE-LABEL: scalar_to_vector_half:
13 ; P9LE: # %bb.0: # %entry
14 ; P9LE-NEXT: lhz r3, 0(r3)
17 ; P9BE-LABEL: scalar_to_vector_half:
18 ; P9BE: # %bb.0: # %entry
19 ; P9BE-NEXT: lhz r3, 0(r3)
20 ; P9BE-NEXT: srwi r3, r3, 24
23 ; P8LE-LABEL: scalar_to_vector_half:
24 ; P8LE: # %bb.0: # %entry
25 ; P8LE-NEXT: lhz r3, 0(r3)
28 ; P8BE-LABEL: scalar_to_vector_half:
29 ; P8BE: # %bb.0: # %entry
30 ; P8BE-NEXT: lhz r3, 0(r3)
31 ; P8BE-NEXT: srwi r3, r3, 24
34 %0 = load <2 x i8>, ptr %ad, align 1
35 %1 = extractelement <2 x i8> %0, i32 0