brintos

brintos / llvm-project-archived public Read only

0
0
Text · 574 B · 325c870 Raw
19 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-- -combiner-shrink-load-replace-store-with-store=false | FileCheck %s3 4define void @shrink(ptr %ptr) {5; CHECK-LABEL: shrink:6; CHECK:       # %bb.0: # %entry7; CHECK-NEXT:    movzbl (%rdi), %eax8; CHECK-NEXT:    orl $25600, %eax # imm = 0x64009; CHECK-NEXT:    movw %ax, (%rdi)10; CHECK-NEXT:    retq11entry:12  %val = load i16, ptr %ptr13  %masked_val = and i16 %val, 25514  %replaced_val = or i16 %masked_val, 2560015  store i16 %replaced_val, ptr %ptr16  ret void17}18 19