1 ; RUN: llc -O0 -mhwmult=32bit < %s | FileCheck %s
2 ; RUN: llc -O0 -mattr=+hwmult32 < %s | FileCheck %s
4 target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16-a0:16:16"
5 target triple = "msp430---elf"
7 @g_i32 = global i32 123, align 8
8 @g_i64 = global i64 456, align 8
9 @g_i16 = global i16 789, align 8
11 define i16 @mpyi() #0 {
15 ; CHECK: call #__mspabi_mpyi_hw
16 %0 = load volatile i16, i16* @g_i16, align 8
22 define i32 @mpyli() #0 {
26 ; CHECK: call #__mspabi_mpyl_hw32
27 %0 = load volatile i32, i32* @g_i32, align 8
33 define i64 @mpylli() #0 {
37 ; CHECK: call #__mspabi_mpyll_hw32
38 %0 = load volatile i64, i64* @g_i64, align 8
44 attributes #0 = { nounwind }