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
4 define void @shrink(ptr %ptr) {
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)
12 %val = load i16, ptr %ptr
13 %masked_val = and i16 %val, 255
14 %replaced_val = or i16 %masked_val, 25600
15 store i16 %replaced_val, ptr %ptr