| 1 |
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3 |
| 2 |
; Check that we split named function arguments correctly into a separate CHECK line, |
| 3 |
; ensuring the opening parenthesis is on the label name, avoiding incorrect label |
| 4 |
; matches if function names are not prefix free. |
| 5 |
; |
| 6 |
; RUN: opt < %s -passes=instsimplify -S | FileCheck %s |
| 7 |
; |
| 8 |
define i32 @"foo"(i32 %named) { |
| 9 |
; CHECK-LABEL: define i32 @foo( |
| 10 |
; CHECK-SAME: i32 [[NAMED:%.*]]) { |
| 11 |
; CHECK-NEXT: entry: |
| 12 |
; CHECK-NEXT: ret i32 [[NAMED]] |
| 13 |
; |
| 14 |
entry: |
| 15 |
ret i32 %named |
| 16 |
} |