1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s 3 4@value1 = external hidden constant i32 5 6define i32 @function(i32 %arg1) { 7; CHECK-LABEL: function: 8; CHECK: # %bb.0: # %entry 9; CHECK-NEXT: movl $value1, %eax 10; CHECK-NEXT: xorl {{[0-9]+}}(%esp), %eax 11; CHECK-NEXT: negl %eax 12; CHECK-NEXT: retl 13entry: 14 %0 = xor i32 %arg1, xor (i32 ptrtoint (ptr @value1 to i32), i32 -1) 15 %.neg = add i32 %0, 1 16 ret i32 %.neg 17} 18