1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
4 ; abs(undef) should fold to 0 not undef.
6 declare i32 @llvm.abs.i32(i32, i1 immarg) #0
8 define i32 @abs(i32 %0) {
11 ; CHECK-NEXT: xorl %eax, %eax
13 %2 = call i32 @llvm.abs.i32(i32 undef, i1 false)