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 ;TODO: instruction selection not supported yet
5 ;define i8 @test_mul_i8(i8 %arg1, i8 %arg2) {
6 ; %ret = mul i8 %arg1, %arg2
10 define i16 @test_mul_i16(i16 %arg1, i16 %arg2) {
11 ; ALL-LABEL: test_mul_i16:
13 ; ALL-NEXT: movl %esi, %eax
14 ; ALL-NEXT: imulw %di, %ax
15 ; ALL-NEXT: # kill: def $ax killed $ax killed $eax
17 %ret = mul i16 %arg1, %arg2
21 define i32 @test_mul_i32(i32 %arg1, i32 %arg2) {
22 ; ALL-LABEL: test_mul_i32:
24 ; ALL-NEXT: movl %esi, %eax
25 ; ALL-NEXT: imull %edi, %eax
27 %ret = mul i32 %arg1, %arg2
31 define i64 @test_mul_i64(i64 %arg1, i64 %arg2) {
32 ; ALL-LABEL: test_mul_i64:
34 ; ALL-NEXT: movq %rsi, %rax
35 ; ALL-NEXT: imulq %rdi, %rax
37 %ret = mul i64 %arg1, %arg2