brintos

brintos / llvm-project-archived public Read only

0
0
Text · 920 B · 488d1e2 Raw
26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu | FileCheck %s3; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-aix | FileCheck %s4; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-aix | FileCheck %s5 6define i1 @subovfi_i32(i32 noundef %a, i32 noundef %b, ptr %c)  {7; CHECK-LABEL: subovfi_i32:8; CHECK:       # %bb.0: # %entry9; CHECK-NEXT:    xor 6, 4, 310; CHECK-NEXT:    sub 4, 3, 411; CHECK-NEXT:    xor 3, 4, 312; CHECK-NEXT:    stw 4, 0(5)13; CHECK-NEXT:    and 3, 6, 314; CHECK-NEXT:    srwi 3, 3, 3115; CHECK-NEXT:    blr16entry:17  %0 = call { i32, i1 } @llvm.ssub.with.overflow.i32(i32 %a, i32 %b)18  %1 = extractvalue { i32, i1 } %0, 119  %2 = extractvalue { i32, i1 } %0, 020  store i32 %2, ptr %c, align 421  ret i1 %122}23 24declare { i32, i1 } @llvm.ssub.with.overflow.i32(i32, i32)25 26