File tree 2 files changed +14
-5
lines changed
test/tools/llvm-exegesis/X86/latency
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change
1
+ # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mode=latency --skip-measurements -opcode-name=ADDPSrr -repetition-mode=duplicate -dump-object-to-disk=1 2>&1 | FileCheck %s --check-prefix=CHECK-ON
2
+ # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mode=latency --skip-measurements -opcode-name=ADDPSrr -repetition-mode=loop -dump-object-to-disk=1 2>&1 | FileCheck %s --check-prefix=CHECK-ON
3
+ # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mode=latency --skip-measurements -opcode-name=ADDPSrr -repetition-mode=duplicate -dump-object-to-disk=0 2>&1 | FileCheck %s --check-prefix=CHECK-OFF
4
+ # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mode=latency --skip-measurements -opcode-name=ADDPSrr -repetition-mode=loop -dump-object-to-disk=0 2>&1 | FileCheck %s --check-prefix=CHECK-OFF
5
+ # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mode=latency --skip-measurements -opcode-name=ADDPSrr -repetition-mode=duplicate 2>&1 | FileCheck %s --check-prefix=CHECK-OFF
6
+ # RUN: llvm-exegesis -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mode=latency --skip-measurements -opcode-name=ADDPSrr -repetition-mode=loop 2>&1 | FileCheck %s --check-prefix=CHECK-OFF
7
+
8
+ CHECK-ON: Check generated assembly with
9
+ CHECK-OFF-NOT: Check generated assembly with
Original file line number Diff line number Diff line change @@ -205,11 +205,11 @@ static cl::opt<std::string>
205
205
cl::desc (" Target a specific cpu type (-mcpu=help for details)" ),
206
206
cl::value_desc(" cpu-name" ), cl::cat(Options), cl::init(" native" ));
207
207
208
- static cl::opt<bool >
209
- DumpObjectToDisk ( " dump-object-to-disk" ,
210
- cl::desc (" dumps the generated benchmark object to disk "
211
- " and prints a message to access it" ),
212
- cl::cat(BenchmarkOptions), cl::init(true ));
208
+ static cl::opt<bool > DumpObjectToDisk (
209
+ " dump-object-to-disk" ,
210
+ cl::desc (" dumps the generated benchmark object to disk "
211
+ " and prints a message to access it (default = false) " ),
212
+ cl::cat(BenchmarkOptions), cl::init(false ));
213
213
214
214
static ExitOnError ExitOnErr (" llvm-exegesis error: " );
215
215
You can’t perform that action at this time.
0 commit comments