brintos

brintos / llvm-project-archived public Read only

0
0
Text · 423 B · 3ffa6cf Raw
16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s3 4; abs(undef) should fold to 0 not undef.5 6declare i32 @llvm.abs.i32(i32, i1 immarg) #07 8define i32 @abs(i32 %0) {9; CHECK-LABEL: abs:10; CHECK:       # %bb.0:11; CHECK-NEXT:    xorl %eax, %eax12; CHECK-NEXT:    retq13  %2 = call i32 @llvm.abs.i32(i32 undef, i1 false)14  ret i32 %215}16