• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-- -combiner-shrink-load-replace-store-with-store=false | FileCheck %s
3
4define void @shrink(i16* %ptr) {
5; CHECK-LABEL: shrink:
6; CHECK:       # %bb.0: # %entry
7; CHECK-NEXT:    movzbl (%rdi), %eax
8; CHECK-NEXT:    orl $25600, %eax # imm = 0x6400
9; CHECK-NEXT:    movw %ax, (%rdi)
10; CHECK-NEXT:    retq
11entry:
12  %val = load i16, i16* %ptr
13  %masked_val = and i16 %val, 255
14  %replaced_val = or i16 %masked_val, 25600
15  store i16 %replaced_val, i16* %ptr
16  ret void
17}
18
19