mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
1c1cc1c5ed
As announced here: http://lists.llvm.org/pipermail/llvm-dev/2019-April/131786.html Grouped option syntax (POSIX Utility Conventions) does not play well with -long-option A subsequent change will reject -long-option.
23 lines
515 B
LLVM
23 lines
515 B
LLVM
; RUN: llc -march=mips64el -filetype=obj -mcpu=mips64r2 %s -o - | \
|
|
; RUN: llvm-objdump -d - | FileCheck %s
|
|
|
|
; Sign extend from 32 to 64 was creating nonsense opcodes
|
|
|
|
; CHECK: sll ${{[a-z0-9]+}}, ${{[a-z0-9]+}}, 0
|
|
|
|
define i64 @foo(i32 %ival) nounwind readnone {
|
|
entry:
|
|
%conv = sext i32 %ival to i64
|
|
ret i64 %conv
|
|
}
|
|
|
|
; CHECK-LABEL: <foo_2>:
|
|
; CHECK: dext ${{[a-z0-9]+}}, ${{[a-z0-9]+}}, 0, 32
|
|
|
|
define i64 @foo_2(i32 %ival_2) nounwind readnone {
|
|
entry:
|
|
%conv_2 = zext i32 %ival_2 to i64
|
|
ret i64 %conv_2
|
|
}
|
|
|