2017-08-02 06:20:41 +08:00
|
|
|
; RUN: llc -verify-machineinstrs -mcpu=ppc32 -mtriple=powerpc-unknown-linux-gnu < %s | FileCheck %s
|
2014-03-06 06:14:00 +08:00
|
|
|
define double @test(i1 %X) {
|
|
|
|
%Y = uitofp i1 %X to double
|
|
|
|
ret double %Y
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-LABEL: @test
|
2018-07-20 03:34:18 +08:00
|
|
|
; CHECK-DAG: addis 3, 4, .LCPI
|
|
|
|
; CHECK-DAG: addis 4, 4, .LCPI
|
|
|
|
; CHECK-DAG: andi. {{[0-9]+}}, 3, 1
|
2017-01-17 04:12:26 +08:00
|
|
|
; CHECK-NEXT: bc 12, 1, [[TRUE:.LBB[0-9]+]]
|
|
|
|
; CHECK-NEXT: b [[SUCCESSOR:.LBB[0-9]+]]
|
|
|
|
; CHECK-NEXT: [[TRUE]]
|
2018-07-20 03:34:18 +08:00
|
|
|
; CHECK-NEXT: addi 3, 4, 0
|
2017-01-17 04:12:26 +08:00
|
|
|
; CHECK-NEXT: [[SUCCESSOR]]
|
|
|
|
; CHECK-NEXT: lfs 1, 0(3)
|
|
|
|
; CHECK-NEXT: blr
|