brintos

brintos / llvm-project-archived public Read only

0
0
Text · 741 B · ab4753b Raw
25 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mcpu=pwr4 -mattr=-altivec \2; RUN: -mtriple=powerpc-ibm-aix-xcoff 2>&1 | FileCheck %s3 4; RUN: llc -verify-machineinstrs < %s -mcpu=pwr4 -mattr=-altivec \5; RUN: -mtriple=powerpc-unknown-linux-gnu 2>&1 | FileCheck %s6 7; When we convert an `i64` to `f32` on 32-bit PPC target, a `setcc` will be8; generated. And this testcase verifies that the operand expansion of `setcc`9; will not crash.10 11%struct.A = type { float }12 13@ll = external local_unnamed_addr global i6414@a = external local_unnamed_addr global %struct.A15 16define void @foo() local_unnamed_addr {17entry:18  %0 = load i64, ptr @ll19  %conv = sitofp i64 %0 to float20  store float %conv, ptr @a21  ret void22}23 24; CHECK-NOT: Unexpected setcc expansion!25