brintos

brintos / llvm-project-archived public Read only

0
0
Text · 589 B · 6821d82 Raw
25 lines · plain
1; RUN: llc -verify-machineinstrs -ppc-asm-full-reg-names < %s -mattr=-vsx -mtriple=powerpc-unknown-linux-gnu | FileCheck %s2 3define double @fabs(double %f) {4; CHECK-LABEL: fabs:5; CHECK:       # %bb.0:6; CHECK-NEXT:    fabs f1, f17; CHECK-NEXT:    blr8;9  %t = tail call double @fabs( double %f ) readnone10  ret double %t11}12 13define float @bitcast_fabs(float %x) {14; CHECK-LABEL: bitcast_fabs:15; CHECK:       # %bb.0:16; CHECK-NEXT: fabs f1, f117; CHECK-NEXT:    blr18;19  %bc1 = bitcast float %x to i3220  %and = and i32 %bc1, 214748364721  %bc2 = bitcast i32 %and to float22  ret float %bc223}24 25