-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PowerPC] Add test case for pr47830. NFC.
- Loading branch information
Kai Luo
committed
Oct 26, 2020
1 parent
f32992a
commit 82150da
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | ||
; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs \ | ||
; RUN: -mtriple=powerpc64le-linux-gnu < %s | FileCheck %s | ||
|
||
define i64 @f(i64 %a, i64 %b) { | ||
; CHECK-LABEL: f: | ||
; CHECK: # %bb.0: | ||
; CHECK-NEXT: sub. r3, r3, r4 | ||
; CHECK-NEXT: isellt r3, 0, r3 | ||
; CHECK-NEXT: blr | ||
%c = icmp slt i64 %a, %b | ||
%d = sub i64 %a, %b | ||
%e = select i1 %c, i64 0, i64 %d | ||
ret i64 %e | ||
} | ||
|
||
define i64 @g(i64 %a, i64 %b) { | ||
; CHECK-LABEL: g: | ||
; CHECK: # %bb.0: | ||
; CHECK-NEXT: sub. r3, r3, r4 | ||
; CHECK-NEXT: isellt r3, 0, r3 | ||
; CHECK-NEXT: blr | ||
%c = icmp slt i64 %a, %b | ||
%d = sub nsw i64 %a, %b | ||
%e = select i1 %c, i64 0, i64 %d | ||
ret i64 %e | ||
} |