brintos

brintos / llvm-project-archived public Read only

0
0
Text · 614 B · 8e9e455 Raw
14 lines · plain
1; Test error handling and input validation for llvm-ir2vec tool2 3; RUN: not llvm-ir2vec embeddings %s 2>&1 | FileCheck %s -check-prefix=CHECK-NO-VOCAB4; RUN: not llvm-ir2vec embeddings --function=nonexistent --ir2vec-vocab-path=%ir2vec_test_vocab_dir/dummy_3D_nonzero_opc_vocab.json %s 2>&1 | FileCheck %s -check-prefix=CHECK-FUNC-NOT-FOUND5 6; Simple test function for valid IR7define i32 @test_func(i32 %a) {8entry:9  ret i32 %a10}11 12; CHECK-NO-VOCAB: error: IR2Vec vocabulary file path not specified; You may need to set it using --ir2vec-vocab-path13; CHECK-FUNC-NOT-FOUND: error: Function 'nonexistent' not found14