1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm -o - %s | FileCheck %s
3 void while_test(int *List
, int Length
, int *List2
, int Length2
) {
4 // CHECK: define {{.*}} @_Z10while_test
7 #pragma clang loop distribute(enable)
9 // CHECK: br label {{.*}}, !llvm.loop ![[LOOP_1:.*]]
16 // CHECK: br label {{.*}}, !llvm.loop [[LOOP_2:![0-9]+]]
22 // CHECK: ![[LOOP_1]] = distinct !{![[LOOP_1]], [[MP:![0-9]+]], ![[DISTRIBUTE_ENABLE:.*]]}
23 // CHECK: ![[DISTRIBUTE_ENABLE]] = !{!"llvm.loop.distribute.enable", i1 true}
24 // CHECK: [[LOOP_2]] = distinct !{[[LOOP_2]], [[MP]]}