aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/MoveAutoInit/invalid-annotation.ll
blob: e87397377cdcca82ee1d5f3596db8739803b1517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
; RUN: opt -S -passes=move-auto-init < %s | FileCheck %s

define i1 @test(ptr %a, ptr %b) {
; CHECK-LABEL: define i1 @test
; CHECK-SAME: (ptr [[A:%.*]], ptr [[B:%.*]]) {
; CHECK-NEXT:    [[C:%.*]] = icmp uge ptr [[A]], [[B]], !annotation !0
; CHECK-NEXT:    ret i1 [[C]]
;
  %c = icmp uge ptr %a, %b, !annotation !0
  ret i1 %c
}

!0 = !{ !"auto-init" }