1 # RUN: llc -mtriple=x86_64-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=ALL,INC
2 # RUN: llc -mtriple=x86_64-linux-gnu -mattr=+slow-incdec -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=ALL,ADD
5 define i8 @test_add_i8(i8 %arg1) {
16 # ALL-NEXT: - { id: 0, class: gr8, preferred-register: '' }
17 # INC-NEXT: - { id: 1, class: gpr, preferred-register: '' }
18 # ADD-NEXT: - { id: 1, class: gpr, preferred-register: '' }
19 # ALL-NEXT: - { id: 2, class: gr8, preferred-register: '' }
21 - { id: 0, class: gpr }
22 - { id: 1, class: gpr }
23 - { id: 2, class: gpr }
24 # ALL: %0:gr8 = COPY $al
25 # INC-NEXT: %2:gr8 = INC8r %0
26 # ADD-NEXT: %2:gr8 = ADD8ri %0, 1
32 %1(s8) = G_CONSTANT i8 1