brintos

brintos / llvm-project-archived public Read only

0
0
Text · 768 B · 2e26294 Raw
24 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 22; RUN: opt < %s -passes=instcombine -S | FileCheck %s3; PR122344 5@g = extern_weak global i326define i32 @function(i32 %x) nounwind {7; CHECK-LABEL: define i32 @function8; CHECK-SAME: (i32 [[X:%.*]]) #[[ATTR0:[0-9]+]] {9; CHECK-NEXT:  entry:10; CHECK-NEXT:    [[XOR:%.*]] = xor i32 [[X]], 111; CHECK-NEXT:    store volatile i32 [[XOR]], ptr inttoptr (i64 1 to ptr), align 412; CHECK-NEXT:    [[OR4:%.*]] = or i32 [[X]], 113; CHECK-NEXT:    ret i32 [[OR4]]14;15entry:16  %xor = xor i32 %x, 117  store volatile i32 %xor, ptr inttoptr (i64 1 to ptr), align 418  %cmp = icmp eq ptr @g, null19  %ext = zext i1 %cmp to i3220  %or = or i32 %ext, 121  %or4 = or i32 %or, %xor22  ret i32 %or423}24