xref: /llvm-project/llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-alignment-page-boundary.s (revision ceb196d9903f4db7250bbc6c8da13eeae1b85886)
1# REQUIRES: exegesis-can-measure-latency, x86_64-linux
2
3# Test that we error out if the requested address is not aligned to a page
4# boundary. Here we test out mapping at 2^12+4, which is off from a page
5# boundary by four bytes.
6
7# RUN: not llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess 2>&1 | FileCheck %s
8
9# LLVM-EXEGESIS-MEM-DEF test1 4096 414D47
10# LLVM-EXEGESIS-MEM-MAP test1 65540
11
12nop
13
14# CHECK: invalid comment 'LLVM-EXEGESIS-MEM-MAP  test1 65540', expected <ADDRESS> to be a multiple of the platform page size.
15