1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu \
3 ; RUN: -mattr=+spe | FileCheck %s
5 define i32 @test_dasmconst(double %x) #0 {
6 ; CHECK-LABEL: test_dasmconst:
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: stwu 1, -16(1)
9 ; CHECK-NEXT: evmergelo 3, 3, 4
10 ; CHECK-NEXT: evstdd 3, 8(1)
12 ; CHECK-NEXT: efdctsi 3, 3
14 ; CHECK-NEXT: addi 1, 1, 16
17 %x.addr = alloca double, align 8
18 store double %x, ptr %x.addr, align 8
19 %0 = load double, ptr %x.addr, align 8
20 %1 = call i32 asm sideeffect "efdctsi $0, $1", "=d,d"(double %0)
23 attributes #0 = { nounwind }