| 1 |
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 |
| 2 |
; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s |
| 3 |
|
| 4 |
; The load is to the high byte of the 2-byte store |
| 5 |
@g = global i8 -75 |
| 6 |
|
| 7 |
define void @f(i16 %v) { |
| 8 |
; CHECK-LABEL: f: |
| 9 |
; CHECK: # %bb.0: |
| 10 |
; CHECK-NEXT: addis 4, 2, .LC0@toc@ha |
| 11 |
; 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: blr |
| 16 |
%p32 = alloca i16 |
| 17 |
store i16 %v, ptr %p32 |
| 18 |
%tmp = load i8, ptr %p32 |
| 19 |
store i8 %tmp, ptr @g |
| 20 |
ret void |
| 21 |
} |