1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs \
3 ; RUN: -mtriple=powerpc64le-linux-gnu < %s | FileCheck %s
5 define i64 @f(i64 %a, i64 %b) {
8 ; CHECK-NEXT: cmpd r3, r4
9 ; CHECK-NEXT: sub r5, r3, r4
10 ; CHECK-NEXT: isellt r3, 0, r5
12 %c = icmp slt i64 %a, %b
14 %e = select i1 %c, i64 0, i64 %d
18 define i64 @g(i64 %a, i64 %b) {
21 ; CHECK-NEXT: sub. r3, r3, r4
22 ; CHECK-NEXT: isellt r3, 0, r3
24 %c = icmp slt i64 %a, %b
25 %d = sub nsw i64 %a, %b
26 %e = select i1 %c, i64 0, i64 %d