<commit_before># RUN: llc -mtriple=i586-linux-gnu -global-isel -run-pass=instruction-select %s -o - | FileCheck %s --check-prefix=CHECK
#
# This is necessary to test that attribute-based rule predicates work and that
# they properly reset between functions.

--- |
  define i32 @const_i32_1() {
    ret i32 1
  }

  define i32 @const_i32_1_optsize() #0 {
    ret i32 1
  }

  define i32 @const_i32_1b() {
    ret i32 1
  }

  define i32 @const_i32_1_optsizeb() #0 {
    ret i32 1
  }

  attributes #0 = { optsize }
...
---
name:            const_i32_1
legalized:       true
regBankSelected: true
selected:        false
# CHECK-LABEL: name: const_i32_1
# CHECK:       registers:
# CHECK-NEXT:  - { id: 0, class: gr32 }
registers:
  - { id: 0, class: gpr }
# CHECK:  body:
# CHECK:    %0 = MOV32ri 1
body:             |
  bb.1 (%ir-block.0):
    %0(s32) = G_CONSTANT i32 1
    %eax = COPY %0(s32)
    RET 0, implicit %eax
...
---
name:            const_i32_1_optsize
legalized:       true
regBankSelected: true
selected:        false
# CHECK-LABEL: name: const_i32_1_optsize
# CHECK:       registers:
# CHECK-NEXT:  - { id: 0, class: gr32 }
registers:
  - { id: 0, class: gpr }
# CHECK:  body:
# CHECK:    %0 = MOV32r1
body:             |
  bb.1 (%ir-block.0):
    %0(s32) = G_CONSTANT i32 1
    %eax = COPY %0(s32)
    RET 0, implicit %eax
...
---
name:            const_i32_1b
legalized:       true
regBankSelected: true
selected:        false
# CHECK-LABEL: name: const_i32_1b
# CHECK:       registers:
# CHECK-NEXT:  - { id: 0, class: gr32 }
registers:
  - { id: 0, class: gpr }
# CHECK:  body:
# CHECK:    %0 = MOV32ri 1
body:             |
  bb.1 (%ir-block.0):
    %0(s32) = G_CONSTANT i32 1
    %eax = COPY %0(s32)
    RET 0, implicit %eax
...
---
name:            const_i32_1_optsizeb
legalized:       true
regBankSelected: true
selected:        false
# CHECK-LABEL: name: const_i32_1_optsizeb
# CHECK:       registers:
# CHECK-NEXT:  - { id: 0, class: gr32 }
registers:
  - { id: 0, class: gpr }
# CHECK:  body:
# CHECK:    %0 = MOV32r1
body:             |
  bb.1 (%ir-block.0):
    %0(s32) = G_CONSTANT i32 1
    %eax = COPY %0(s32)
    RET 0, implicit %eax
...
<commit_msg>Explicitly set CPU and -slow-incdec to try to fix r303678's test on llvm-clang-x86_64-expensive-checks-win.<commit_after># RUN: llc -mtriple=i586-linux-gnu -mcpu=haswell -mattr=-slow-incdec -global-isel -run-pass=instruction-select %s -o - | FileCheck %s --check-prefix=CHECK
#
# This is necessary to test that attribute-based rule predicates work and that
# they properly reset between functions.

--- |
  define i32 @const_i32_1() {
    ret i32 1
  }

  define i32 @const_i32_1_optsize() #0 {
    ret i32 1
  }

  define i32 @const_i32_1b() {
    ret i32 1
  }

  define i32 @const_i32_1_optsizeb() #0 {
    ret i32 1
  }

  attributes #0 = { optsize }
...
---
name:            const_i32_1
legalized:       true
regBankSelected: true
selected:        false
# CHECK-LABEL: name: const_i32_1
# CHECK:       registers:
# CHECK-NEXT:  - { id: 0, class: gr32 }
registers:
  - { id: 0, class: gpr }
# CHECK:  body:
# CHECK:    %0 = MOV32ri 1
body:             |
  bb.1 (%ir-block.0):
    %0(s32) = G_CONSTANT i32 1
    %eax = COPY %0(s32)
    RET 0, implicit %eax
...
---
name:            const_i32_1_optsize
legalized:       true
regBankSelected: true
selected:        false
# CHECK-LABEL: name: const_i32_1_optsize
# CHECK:       registers:
# CHECK-NEXT:  - { id: 0, class: gr32 }
registers:
  - { id: 0, class: gpr }
# CHECK:  body:
# CHECK:    %0 = MOV32r1
body:             |
  bb.1 (%ir-block.0):
    %0(s32) = G_CONSTANT i32 1
    %eax = COPY %0(s32)
    RET 0, implicit %eax
...
---
name:            const_i32_1b
legalized:       true
regBankSelected: true
selected:        false
# CHECK-LABEL: name: const_i32_1b
# CHECK:       registers:
# CHECK-NEXT:  - { id: 0, class: gr32 }
registers:
  - { id: 0, class: gpr }
# CHECK:  body:
# CHECK:    %0 = MOV32ri 1
body:             |
  bb.1 (%ir-block.0):
    %0(s32) = G_CONSTANT i32 1
    %eax = COPY %0(s32)
    RET 0, implicit %eax
...
---
name:            const_i32_1_optsizeb
legalized:       true
regBankSelected: true
selected:        false
# CHECK-LABEL: name: const_i32_1_optsizeb
# CHECK:       registers:
# CHECK-NEXT:  - { id: 0, class: gr32 }
registers:
  - { id: 0, class: gpr }
# CHECK:  body:
# CHECK:    %0 = MOV32r1
body:             |
  bb.1 (%ir-block.0):
    %0(s32) = G_CONSTANT i32 1
    %eax = COPY %0(s32)
    RET 0, implicit %eax
...

{'fraction_non_alphanumeric': 0.13773920783266577, 'fraction_numerical': 0.06542056074766354, 'mean_word_length': 2.250180766449747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4224989', 'n_tokens_mistral': 1939, 'n_tokens_neox': 1787, 'n_words': 468}