2006-04-02 21:47:07 +00:00
|
|
|
; Make sure this testcase does not use mulq
|
2007-04-15 18:40:57 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | \
|
|
|
|
; RUN: not grep -i mul
|
2006-04-02 21:47:07 +00:00
|
|
|
|
|
|
|
implementation ; Functions:
|
|
|
|
|
2006-04-03 03:16:09 +00:00
|
|
|
ulong %foo1(ulong %x) {
|
2006-04-02 21:47:07 +00:00
|
|
|
entry:
|
2006-04-03 03:16:09 +00:00
|
|
|
%tmp.1 = mul ulong %x, 9 ; <ulong> [#uses=1]
|
|
|
|
ret ulong %tmp.1
|
|
|
|
}
|
|
|
|
ulong %foo3(ulong %x) {
|
|
|
|
entry:
|
|
|
|
%tmp.1 = mul ulong %x, 259
|
|
|
|
ret ulong %tmp.1
|
|
|
|
}
|
|
|
|
|
2006-04-03 04:14:39 +00:00
|
|
|
ulong %foo4l(ulong %x) {
|
|
|
|
entry:
|
|
|
|
%tmp.1 = mul ulong %x, 260
|
|
|
|
ret ulong %tmp.1
|
|
|
|
}
|
|
|
|
|
|
|
|
ulong %foo4ln(ulong %x) {
|
2006-10-31 19:50:55 +00:00
|
|
|
entry:
|
|
|
|
%tmp.1 = mul ulong %x, 508
|
|
|
|
ret ulong %tmp.1
|
|
|
|
}
|
|
|
|
ulong %foo4ln_more(ulong %x) {
|
2006-04-03 04:14:39 +00:00
|
|
|
entry:
|
|
|
|
%tmp.1 = mul ulong %x, 252
|
|
|
|
ret ulong %tmp.1
|
|
|
|
}
|
|
|
|
|
2006-04-03 03:16:09 +00:00
|
|
|
ulong %foo1n(ulong %x) {
|
|
|
|
entry:
|
|
|
|
%tmp.1 = mul ulong %x, 511
|
2006-04-02 21:47:07 +00:00
|
|
|
ret ulong %tmp.1
|
|
|
|
}
|
|
|
|
|
2006-04-03 04:14:39 +00:00
|
|
|
ulong %foo8l(ulong %x) {
|
|
|
|
entry:
|
|
|
|
%tmp.1 = mul ulong %x, 768
|
|
|
|
ret ulong %tmp.1
|
|
|
|
}
|
|
|
|
|
2006-04-02 21:47:07 +00:00
|
|
|
long %bar(long %x) {
|
|
|
|
entry:
|
|
|
|
%tmp.1 = mul long %x, 5 ; <long> [#uses=1]
|
|
|
|
ret long %tmp.1
|
|
|
|
}
|