1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s
4 @value1 = external hidden constant i32
6 define 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
14 %0 = xor i32 %arg1, xor (i32 ptrtoint (i32* @value1 to i32), i32 -1)