forked from OSchip/llvm-project
31 lines
796 B
YAML
31 lines
796 B
YAML
# RUN: llc -mtriple=i386-linux-gnu -global-isel -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X32
|
|
# RUN: llc -mtriple=x86_64-linux-gnu -global-isel -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X64
|
|
--- |
|
|
define void @trunc_check() {
|
|
ret void
|
|
}
|
|
|
|
...
|
|
---
|
|
name: trunc_check
|
|
# ALL-LABEL: name: trunc_check
|
|
registers:
|
|
- { id: 0, class: _ }
|
|
- { id: 1, class: _ }
|
|
- { id: 2, class: _ }
|
|
- { id: 3, class: _ }
|
|
body: |
|
|
bb.1 (%ir-block.0):
|
|
%0(s32) = IMPLICIT_DEF
|
|
; ALL: %1:_(s1) = G_TRUNC %0(s32)
|
|
%1(s1) = G_TRUNC %0(s32)
|
|
|
|
; ALL: %2:_(s8) = G_TRUNC %0(s32)
|
|
%2(s8) = G_TRUNC %0(s32)
|
|
|
|
; ALL: %3:_(s16) = G_TRUNC %0(s32)
|
|
%3(s16) = G_TRUNC %0(s32)
|
|
RET 0
|
|
|
|
...
|