23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-- -x86-promote-anyext-load=false | FileCheck %s3 4%struct.S = type { i32, i16, i16 }5 6define void @foo(ptr %p, i16 signext %s) {7; CHECK-LABEL: foo:8; CHECK: # %bb.0: # %entry9; CHECK-NEXT: movzwl 4(%rdi), %eax10; CHECK-NEXT: andl $-1121, %eax # imm = 0xFB9F11; CHECK-NEXT: orl $1024, %eax # imm = 0x40012; CHECK-NEXT: movw %ax, 4(%rdi)13; CHECK-NEXT: retq14entry:15 %f2 = getelementptr inbounds %struct.S, ptr %p, i64 0, i32 116 %0 = load i16, ptr %f2, align 417 %1 = and i16 %0, -112118 %2 = or i16 %1, 102419 store i16 %2, ptr %f2, align 420 ret void21}22 23