1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-linux-gnu -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X64
4 define i8 @const_i8() {
7 ; ALL-NEXT: movb $2, %al
12 define i16 @const_i16() {
13 ; ALL-LABEL: const_i16:
15 ; ALL-NEXT: movw $3, %ax
20 define i32 @const_i32() {
21 ; ALL-LABEL: const_i32:
23 ; ALL-NEXT: movl $4, %eax
28 define i64 @const_i64() {
29 ; ALL-LABEL: const_i64:
31 ; ALL-NEXT: movabsq $68719476720, %rax # imm = 0xFFFFFFFF0
36 ;i64 value fit into u32
37 define i64 @const_i64_u32() {
38 ; ALL-LABEL: const_i64_u32:
40 ; ALL-NEXT: movq $1879048192, %rax # imm = 0x70000000
45 ;i64 value fit into i32
46 define i64 @const_i64_i32() {
47 ; ALL-LABEL: const_i64_i32:
49 ; ALL-NEXT: movq $-1, %rax
54 define void @main(i32 ** %data) {
57 ; ALL-NEXT: movq $0, %rax
58 ; ALL-NEXT: movq %rax, (%rdi)
60 store i32* null, i32** %data, align 8