1; RUN: llc < %s | FileCheck -check-prefix=ENABLED %s 2; RUN: llc -disable-nvptx-load-store-vectorizer < %s | FileCheck -check-prefix=DISABLED %s 3target triple = "nvptx64-nvidia-cuda" 4 5; Check that the load-store vectorizer is enabled by default for nvptx, and 6; that it's disabled by the appropriate flag. 7 8; ENABLED: ld.v2.{{.}}32 9; DISABLED: ld.{{.}}32 10; DISABLED: ld.{{.}}32 11define i32 @f(i32* %p) { 12 %p.1 = getelementptr i32, i32* %p, i32 1 13 %v0 = load i32, i32* %p, align 8 14 %v1 = load i32, i32* %p.1, align 4 15 %sum = add i32 %v0, %v1 16 ret i32 %sum 17} 18