brintos

brintos / llvm-project-archived public Read only

0
0
Text · 604 B · 5bd3580 Raw
22 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s3 4; The load is to the high byte of the 2-byte store5@g = global i8 -756 7define void @f(i16 %v) {8; CHECK-LABEL: f:9; CHECK:       # %bb.0:10; CHECK-NEXT:    addis 4, 2, .LC0@toc@ha11; CHECK-NEXT:    sth 3, -2(1)12; CHECK-NEXT:    ld 4, .LC0@toc@l(4)13; CHECK-NEXT:    lbz 3, -2(1)14; CHECK-NEXT:    stb 3, 0(4)15; CHECK-NEXT:    blr16  %p32 = alloca i1617  store i16 %v, ptr %p3218  %tmp = load i8, ptr %p3219  store i8 %tmp, ptr @g20  ret void21}22