1*ceb196d9SAiden Grossman# REQUIRES: exegesis-can-measure-latency, x86_64-linux
2*ceb196d9SAiden Grossman
3*ceb196d9SAiden Grossman# Test that we error out if the requested snippet address is not aligned to
4*ceb196d9SAiden Grossman# a page boundary. Here we test out mapping at 2^12+4 which is off from a page
5*ceb196d9SAiden Grossman# boundary by four bytes.
6*ceb196d9SAiden Grossman
7*ceb196d9SAiden Grossman# RUN: not llvm-exegesis -mtriple=x86_64-unknown-unknown -mode=latency -snippets-file=%s -execution-mode=subprocess 2>&1 | FileCheck %s
8*ceb196d9SAiden Grossman
9*ceb196d9SAiden Grossman# LLVM-EXEGESIS-SNIPPET-ADDRESS 65540
10*ceb196d9SAiden Grossman
11*ceb196d9SAiden Grossmannop
12*ceb196d9SAiden Grossman
13*ceb196d9SAiden Grossman# CHECK: invalid comment 'LLVM-EXEGESIS-SNIPPET-ADDRESS 65540, expected <ADDRESS> to be a multiple of the platform page size.
14