
Remove support for the icmp and fcmp constant expressions. This is part of: https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179 As usual, many of the updated tests will no longer test what they were originally intended to -- this is hard to preserve when constant expressions get removed, and in many cases just impossible as the existence of a specific kind of constant expression was the cause of the issue in the first place.
29 lines
598 B
LLVM
29 lines
598 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-unknown \
|
|
; RUN: -ppc-asm-full-reg-names < %s | FileCheck %s
|
|
|
|
@bar = external constant i64, align 8
|
|
|
|
define i1 @foo() {
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: li r3, 0
|
|
; CHECK-NEXT: blr
|
|
entry:
|
|
br label %next
|
|
|
|
next:
|
|
br i1 undef, label %true, label %false
|
|
|
|
true:
|
|
%c = icmp ugt i64 0, ptrtoint (ptr @bar to i64)
|
|
br label %end
|
|
|
|
false:
|
|
br label %end
|
|
|
|
end:
|
|
%a = phi i1 [ %c, %true ], [ false, %false ]
|
|
ret i1 %a
|
|
}
|