; RUN: llvm-as < %s | opt -disable-output -analyze -lda | FileCheck %s
; RUN: llvm-as < %s | opt -disable-output -analyze -lda | FileCheck %s
-; x[5] = x[6] // with x being a pointer passed as argument
+;; x[5] = x[6] // with x being a pointer passed as argument
define void @f1(i32* nocapture %xptr) nounwind {
entry:
define void @f1(i32* nocapture %xptr) nounwind {
entry:
-; x[5] = x[6] // with x being an array on the stack
+;; x[5] = x[6] // with x being an array on the stack
define void @foo(...) nounwind {
entry:
define void @foo(...) nounwind {
entry:
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4
-; for (i = 0; i < 256; i++)
-; x[i] = x[i] + y[i]
+;; for (i = 0; i < 256; i++)
+;; x[i] = x[i] + y[i]
define void @f1(...) nounwind {
entry:
define void @f1(...) nounwind {
entry:
-; for (i = 0; i < 256; i++)
-; x[i+1] = x[i] + y[i]
+;; for (i = 0; i < 256; i++)
+;; x[i+1] = x[i] + y[i]
define void @f2(...) nounwind {
entry:
define void @f2(...) nounwind {
entry:
-; for (i = 0; i < 10; i++)
-; x[i+20] = x[i] + y[i]
+;; for (i = 0; i < 10; i++)
+;; x[i+20] = x[i] + y[i]
define void @f3(...) nounwind {
entry:
define void @f3(...) nounwind {
entry:
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4
-; for (i = 0; i < 256; i++)
-; x[i] = x[256 - i] + y[i]
+;; for (i = 0; i < 256; i++)
+;; x[i] = x[256 - i] + y[i]
define void @f1(...) nounwind {
entry:
define void @f1(...) nounwind {
entry:
-; // the same example, using more realistic IR
-; for (i = 0; i < 256; i++)
-; x[i] = x[256 - i] + y[i]
+;; // the same example, using more realistic IR
+;; for (i = 0; i < 256; i++)
+;; x[i] = x[256 - i] + y[i]
define void @f2(...) nounwind {
entry:
define void @f2(...) nounwind {
entry:
-; for (i = 0; i < 100; i++)
-; x[i] = x[256 - i] + y[i]
+;; for (i = 0; i < 100; i++)
+;; x[i] = x[256 - i] + y[i]
define void @f3(...) nounwind {
entry:
define void @f3(...) nounwind {
entry:
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4
@x = common global [256 x i32] zeroinitializer, align 4
@y = common global [256 x i32] zeroinitializer, align 4
-; for (i = 0; i < 256; i++)
-; x[i] = x[42] + y[i]
+;; for (i = 0; i < 256; i++)
+;; x[i] = x[42] + y[i]
define void @f1(...) nounwind {
entry:
define void @f1(...) nounwind {
entry:
-; for (i = 0; i < 250; i++)
-; x[i] = x[255] + y[i]
+;; for (i = 0; i < 250; i++)
+;; x[i] = x[255] + y[i]
define void @f2(...) nounwind {
entry:
define void @f2(...) nounwind {
entry:
@x = common global [256 x i32] zeroinitializer, align 4
@x = common global [256 x i32] zeroinitializer, align 4
define void @f1(...) nounwind {
entry:
define void @f1(...) nounwind {
entry:
-; x[c] = x[c+1] // with c being a loop-invariant constant
+;; x[c] = x[c+1] // with c being a loop-invariant constant
define void @f2(i64 %c0) nounwind {
entry:
define void @f2(i64 %c0) nounwind {
entry: